Page 1 of 1

Form code help

Posted: Sat Apr 25, 2009 11:11 am
by wero86
1

Re: Form code help

Posted: Sat Apr 25, 2009 11:52 am
by tech603
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:

Code: Select all

if(isset($_POST['name']) && $_POST['name'] != ""){
$name = $_POST['name'];
} else {
echo "You must enter a valid user name";
}
 
The advantage of javascript is its done on the same page :)
hope that helps