View Single Post
Old 02-11-2009, 11:30 AM   #3 (permalink)
amcdonald
No Avatar
 
Name: Andrew
Last Online: Yesterday 01:48 PM
iTrader: (104)
Join Date: Feb 2006
Posts: 2,818
DNF$: 554
Location: Canada
Country:


Quote:
Originally Posted by ftaylor View Post
Your form method is "post". This means that all data passed by the form to sendmail.php will be in the $_POST array.

Try

Code:
$name = $_POST['name'];
further, if this is to be used on a live/production website, sendmail.php should NOT be as simple as that - you will have to sanitize and validate all of the user entered data.

Thanks, i will give that a shot. this form will be in a protected area of a website with a few trusted people having access.

Thanks,
amcdonald is offline   Reply With Quote