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>
</select>
<span class="selectRequiredMsg">Please select a value</span> </span>
<?php
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"])?
Dean