Howdy -
In setting up a registration form, I'd like to keep any correct entries on the form (make them sticky).
The Registration Form is "included" and has the the following structure:
This generates the following error message:
parse error, unexpected T_IF, expecting ',' or ';' in /html/RegistrationFor m1.php on line 12
How does one punctuate the "if (isset...) to provide the indicated ", or ;" the compiler is looking for?
Would appreciate any help or suggestions.
Thanks
In setting up a registration form, I'd like to keep any correct entries on the form (make them sticky).
The Registration Form is "included" and has the the following structure:
Code:
<body> <?php echo " <p> <form action=$_SERVER[PHP_SELF] method='POST'> <table width='95%' border='0' cellspacing='0' cellpadding='2'> <tr><td></td><td>Please fill in all information.</td></tr> <tr><td align='right'><b>First Name:</b></td> <td><input type='text' name='FirstName' size='35' maxlength='35' value="if (isset($_POST['FirstName'])) {echo $_POST['FirstName']}; "></td></tr> </table> <input type='hidden' name='submitted' value='yes'> </form> </p> ?> </body>
parse error, unexpected T_IF, expecting ',' or ';' in /html/RegistrationFor m1.php on line 12
How does one punctuate the "if (isset...) to provide the indicated ", or ;" the compiler is looking for?
Would appreciate any help or suggestions.
Thanks
Comment