View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Parse error: syntax error

Thread began 12/03/2009 5:13 pm by dean248377 | Last modified 12/15/2009 3:06 pm by dean248377 | 1321 views | 8 replies


Parse error: syntax error

<div class="fieldPair">
<div class="fieldGroup"> <span id="state_Spry">
<select class="formMenufield_Medium" name="state" id="state" tabindex="12" onblur="hideServerError('state_ServerError');">
<option value="value" <?php if (!(strcmp("value", (isset($_GET["invalid"])?ValidatedField("custregistration","state"):"")))) {echo "selected=\"selected\"";} ?>>-Select State-</option>
This is the error i am getting. any ideas?

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Website\Apache2\htdocs\puravidadivers\wwwroot\admin\cart\customers\cust_registration.php on line 387

here is the code around those lines:

<option value="<?php echo $row_Rs_States['StateID']?>" <?php if (!(strcmp("<?php echo $row_Rs_States['StateID']?>", (isset($_GET["invalid"])?ValidatedField("custregistration","state"):"")))) {echo "selected=\"selected\"";} ?>><?php echo $row_Rs_States['StateAbbrev']?></option>
<span class="selectRequiredMsg">Please select a value</span> </span>
if (ValidatedField('custregistration','custregistration')) {
if ((strpos((",".ValidatedField("custregistration","custregistration").","), "," . "10" . ",") !== false || "10" == "")) {
if (!(false)) {
<span class="serverInvalidState" id="state_ServerError">Please select a value</span>

to me it seems this is the line with the problem it is right after 387:

]?>" <?php if (!(strcmp("<?php echo $row_Rs_States['StateID']?>", (isset($_GET["invalid"])?


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