I've uploaded the lib folder and changed its name. My server uses PHP5. I have the correct download of Swift for 5.
I'm using a previously built form that I successfully used with sendmail and a perl script. I'm beginning to use PHP and MySQL. Swift Mailer seems to cover all of my needs and more, so I'm attempting to learn it. I have a long way to go, but I'm stalled at the starting gate.
I've read the tutorials and built a form_handler.php with copy/paste from the "forms" tutorial. When I submit I get a Parse error: syntax error, unexpected T_IF in /home/bullzico/public_html/support_handler.php on line 32. I read where the cause is usually a forgotten ";" or other code error. I've checked the syntax in BBEdit and it reports no errors and have gone line by line, as most of it I copied and pasted, but obviously I'm missing something.
I next tried using the form.php and the handle_form.php pasted from the tutorial as they stand, with necessary adjustments. With this attempt to submit I get a Warning: Cannot modify header information - headers already sent by (output started at /home/bullzico/public_html/handle_form.php:9) in /home/bullzico/public_html/handle_form.php on line 17.
I would appreciate guidance from the more experienced and can attach any of the code, but will wait for a specific request, rather than filling the page with code now.
Thanks
[Solved] New to Swift Mailer with form problems.
Moderators: Chris Corbyn, General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: [Solved] New to Swift Mailer with form problems.
I can't solve this without seeing your code. These are syntax errors 
Re: [Solved] New to Swift Mailer with form problems.
This was a "whitespace" issue that I corrected.