help needed with forms
| From: | Pushpinder Singh Garcha | Date: | Thu, 21 Nov 2002 21:28:15 +0000 |
| Subject: | help needed with forms | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-125502@lists.php.net to get a copy of this message | ||
Hello
I am using php based forms, which collect information from the client and send it in the form a email message to the admin.
I need to start using validation i.e. check whether some field/s has been correctly entered in the from.
My application consists of 2 php pages
1). info.php (this page consists of the plain form and the has its action parameter set to "send_info.php")
2). send_info.php (this forms collects the information that the client entered and composes a message and mails it to
admin)
So I use headers in the following manner:
The send_info.php code starts like this
<?
if($email =='') {
header("Location: http://www.mysite.com/info.php");
}
?>