Using header() to return will clear the entire form where all you want is
the person to fill in missing data. Yes?
I'd use something like:
if(!isset($name) die("Use the Browser's Back Button, fill in your name and
hit the \"Submit\" Button");
if(!isset($address) die("Use the Browser's Back Button, fill in your address
and hit the \"Submit\" Button");
etc.
This way, the user fills in only the missing data.
Hope this helps.
Hugh
----- Original Message -----
From: "Ben Clumeck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 15, 2002 12:24 AM
Subject: [PHP] Empty form
> I am trying to have my form redirect back to my form, if the 'name' field
is
> not filled in or the submit button is not pushed. Can someone tell me
what
> my problem is with the script below that I have in my header:
>
> <?
> if(!isset($name)||($HTTP_POST_VARS[submit]))
> {
> header("Location: form.htm");
> }
> ?>
>
> Thanks,
>
> Ben
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php