Form code help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
wero86
Forum Newbie
Posts: 6
Joined: Sat Apr 25, 2009 11:06 am

Form code help

Post by wero86 »

1
Last edited by wero86 on Mon May 11, 2009 4:41 am, edited 2 times in total.
tech603
Forum Commoner
Posts: 84
Joined: Thu Mar 19, 2009 12:27 am

Re: Form code help

Post 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
Post Reply