You should really try to do it and see if it's possible, before asking on the mailing list... mainly because you will be satisfied with the results...
-- Julio Nobrega Don't eat the yellow snow. "Lee Philip Reilly" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I wonder if someone could tell me whether or not the following is > possible? > > I have an HTML form which passes a username and password to a PHP script > for validation. If either is not valid, I would like it to return to the > previous page - carrying with it a variable plus the submitted form > information... > > =-=-=-=-=-=-=-=-= > if (strlen ($password1) <4 ) { > $err = "Password must be more than 4 characters long"; > header("Location:http://somelocation.php"); > // ^-- at the location, the $err and form variables will be available > > exit; > } > =-=-=-=-=-=-=-=-= > > Is it possible to this without using an HTML form? > > Thanks very much in advance. > > - Best regards, > > Lee > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]