|
Posted by Rik on 10/13/37 11:29
juglesh wrote:
> well, the easiest way, is on page b, just go 'hey that's an invalid
> email addy, use yer back button and fix it' The values that they typed
> should be there.
And for MSIE (that isn't behaving to correctly...) add the following after
session_start():
header("Cache-control: private");
That should repair the nast quality of IE "forgetting" everything in a just
submitted form.
> Or, you could have the page A submit to itself.
> if ($_POST['submit'] == 'submit'){
> //do your validation
> }
> if (($validation == 'error')OR($_POST['submit'] != 'submit'){
> //display the form
> // <input type='text' name='email' value='<?php echo $_POST['email']
>> '>
> }
> else{
> // do whatever, validation is passed
> }
I prefer the second option, saves a hell of a lot unneccesary different
files.
Grtz,
RIk
[Back to original message]
|