close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

code generated simple pulldown menu contains syntax error option HTML

Thread began 3/02/2014 3:49 pm by Jgrass | Last modified 3/03/2014 12:27 pm by Jgrass | 248 views | 1 replies


code generated simple pulldown menu contains syntax error option HTML

This is code generated from a test: Generate a form containing nothing but a simple "yes" "no" menu choice on a page that is just a dirt simple basic PHP page. I haven't messed with anything, no dynamic content, nothing. This is direct from the CSS Form Builder: Form Elements: Menu-medium

and I get a syntax error: Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in Z:\web\Testing\Test1.php on line 116

Option code is like so (I've added line breaks so that it is OBVIOUS where the problem is....

<option value="yes" <?php if (!(strcmp("yes", WA_coalesce(array(WA_getSavedFormValue("Default_NewFromBlank_Default","myMenu"),(isset($_GET["invalid"])?ValidatedField("Test1","myMenu"):
)))))) {echo "selected=\"selected\"";} ?>>yes</option>

The problem is at the $_POST[\"" - to me it appears that this item was truncated, and something is missing here. I do not see a ']' closing this reference.

I got to this because I am using menus, and radio elements and these invariably get generated with this syntax error. I can mess with the code, but I am not entirely sure I won't break something if I cut out the bad references.

File is attached (from Dreamweaver) This is a somewhat minimal test file.

Attached Files

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





Ease of use


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...