Menu
Hi Gurus
If one input has data and another doesn’t, I want to ‘redirect’ back to the form. The code I know about is
[code=php]if (($_POST[‘eletter’]==-1) and (!$_POST[‘EAddress’])) {
echo “<meta http-equiv=”refresh” Content=”0;URL=signup.php”>”;
exit(‘Email address is required if you want to receive email updates…’);
}
but it reloads the page. I want to just go back in history, so that the data they entered is still there…
I was thinking about just printing a message on the page that processes the form, that says to hit the Back button to fill in the missing data, but I don’t know if I like that. Recommendations?