close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

code generated simple pulldown menu contains syntax error option HTML

Thread began 3/02/2014 12:49 pm by Jgrass | Last modified 3/03/2014 9:27 am by Jason Byrnes | 403 views | 1 replies |

Jgrass

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"):
"<?php
echo(
(isset
($_POST[\""
)))))) {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
Test1.php
Sign in to reply to this post

Jason ByrnesWebAssist

What version of Data Bridge is installed?

Make sure you have the latest version, 1.1.8 installed.

if you have a previous version, uninstall it from the extension manager, then install the newer version.

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