close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Parse error on PHP form

Thread began 8/02/2010 6:22 pm by dave378160 | Last modified 8/03/2010 3:04 pm by dave378160 | 1544 views | 4 replies |

dave378160

Parse error on PHP form

I'm getting this error again. I've spent a few hours trying different combination's to try to figure it out. I've attached the actual php page. I know that CSS FormBuilder or Universal E-mail needs PHP 4.0 to work but how do I tell if it not my server and not something like godaddy etc...?

Parse error: syntax error, unexpected T_STRING in /home/haleyv/public_html/fa0192837465.php on line 12

fa0192837465.php

Attached Files
php-code.zip
Sign in to reply to this post

Eric Mittman

It looks like you are missing semicolons for lines 11-18, these lines should look like this:

php:
WAValidateRQ((isset($_POST["Fan_Advocacy_Program_group_Full_Name"])?$_POST["Fan_Advocacy_Program_group_Full_Name"]:"") . "",true,1);

WAValidateRQ((isset($_POST["Fan_Advocacy_Program_group_Street_Address"])?$_POST["Fan_Advocacy_Program_group_Street_Address"]:"") . "",true,2);
WAValidateRQ((isset($_POST["Fan_Advocacy_Program_group_City"])?$_POST["Fan_Advocacy_Program_group_City"]:"") . "",true,3);
WAValidateRQ((isset($_POST["Fan_Advocacy_Program_group_State"])?$_POST["Fan_Advocacy_Program_group_State"]:"") . "",true,4);
WAValidateRQ((isset($_POST["Fan_Advocacy_Program_group_Zip"])?$_POST["Fan_Advocacy_Program_group_Zip"]:"") . "",true,5);
WAValidateEM((isset($_POST["Fan_Advocacy_Program_group_Email"])?$_POST["Fan_Advocacy_Program_group_Email"]:"") . "",true,6);
WAValidateLE((strtolower(isset($_POST["Fan_Advocacy_Program_group_Security_code"])?$_POST["Fan_Advocacy_Program_group_Security_code"]:"")) . "",((isset($_SESSION["captcha_Fan_Advocacy_Program_group_Security_code"]))?strtolower($_SESSION["captcha_Fan_Advocacy_Program_group_Security_code"]):"") . "",true,7);
WAValidateRX((isset($_POST["HiddenFields_fields"])?$_POST["HiddenFields_fields"]:"") . "","/.*/",false,8);



Was this the way that the code was written to the page for you or did you make some edits to the page before you got this error? As a test you can try adding the same form to a new blank page to see if you get these lines of code like this.

Sign in to reply to this post

dave378160

Thanks Eric, that worked. Do you happen to have any idea why the Camping, Hiking and Boating buttons are showing up as checked when the page loads do you?

Sign in to reply to this post

Eric Mittman

Checkboxes can be set to checked with the checked attribute being set like this:

<input type="checkbox" checked="checked"



If you leave this attribute out it will not be checked.

Sign in to reply to this post

dave378160

Ahh, okay. I just ended up changing it to a Radio style button. I'll make note of the workaround. I just have to clean up my computer from the ground up. Having way to many issues with the WA extensions and such.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...