Sticky Forms
I had created "sticky forms" for my checkout page, however for some reason they are now not working. I have used this code before and never a problem.
Here are the sticky form scripts I have tried:
<td><input type="text" name="firstname" id="firstname" "<?php if(isset ($_POST['firstname'])) {echo 'value="'.htmlentities ($_POST['firstname']).'"';}?>" /></td>
<td><input type="text" name="lastname" id="lastname" value="<?php if(isset ($_POST['lastname'])) {echo htmlentities($_POST['lastname']);}?>" /></td>
<td><input type="text" name="email" id="email" value="<?php if(isset ($_POST['email'])) {echo($_POST['email']);}?>" /></td>
All of these have worked on other sites. Since the code did work and now it does not, my first inclination was to see what had changed, but am unable to locate anything.
I have also added the
if(!isset($_SESSION)) {
session_start();
}
$_SESSION['firstname']=stripslashes($_POST['firstname']);
Although it was working without as the session variables are already set.
Anyone have a clue as to why I am having this issue or where I am having the issue?
Also, it would seem to me that this should have been included with the original code since there is a Modify Information button, is it possible I did not create the pages correctly or miss some option in the beginning?
Thank you
Gary