Form code help
Moderator: General Moderators
Re: Form code help
Here is a link that may help you with your form and the mail issue.
http://www.hostmysite.com/support/linux ... g/phpmail/
As far as validation goes, you can do that with javascript (just do a google search) or you could do all your checking on the page your form passes to. Like:
The advantage of javascript is its done on the same page 
hope that helps
http://www.hostmysite.com/support/linux ... g/phpmail/
As far as validation goes, you can do that with javascript (just do a google search) or you could do all your checking on the page your form passes to. Like:
Code: Select all
if(isset($_POST['name']) && $_POST['name'] != ""){
$name = $_POST['name'];
} else {
echo "You must enter a valid user name";
}
hope that helps