Will this work?
| From: | W.D. | Date: | Mon, 19 Feb 2001 18:58:27 +0000 |
| Subject: | Will this work? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40609@lists.php.net to get a copy of this message | ||
I'm still new to php, just wanted to check to make sure this will work ok.
Thanks
<form method="POST" action="<?php print("$PHP_SELF"); ?>">
First Name: <input type=TEXT name="FirstName" size=15><p>
Last Name: <input type=TEXT name="LastName" size=25><p>
E-mail Address: <input type=TEXT name="Email" size=25><p>
<input type=SUBMIT> <input type=RESET>
</form>
<?php
if(!IsSet($FirstName, $LastName, $Email))
{
header("Location: http://www.SITE.com/error.php");
exit;
}
else
{
header("Location:
http://www.SITE.com/thanks.php");
exit;
}
?>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com