Developer Support »

Parse error: syntax error, unexpected T_STRING  (See more user questions)

Hi

I don't see any errors in your attached script. I wonder if it could be
getting corrupted during the upload or on your server. Possibly encoding
issues?

I have attached a fresh script for you. Try it initially with ONLY your
email address added to it, don't configure anything else. See if it works.
If it does, configure one option at a time, see if/when you hit any errors.
What are you using to upload it? Are you uploading it in ASCII (should be)?
What operating system is on your server?

Just a point, the W3C validator is giving 270 errors for your form page:

http://validator.w3.org/

That could potentially give you some bother. Can you use a less strict
doctype? Like:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

or...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

Any questions, just let me know.

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Subject: RE: Problem corrected


> Hi Charles - using your new script. I am getting:
>
> Parse error: syntax error, unexpected T_STRING in
> /usr/www/users/dems/formtoemailpro.php on line 118
>
> - which appears to be a comment. I have not fiddled too much except to
> validate emails, prepopulate and add required fields. Form is at
> www./dems/contact_dems.php
>
> Can you have a look to see what I have stuffed up??
>
> Thanks,