View Single Post
Old 02-11-2009, 11:27 AM   #2 (permalink)
ftaylor
.scot
 
ftaylor's Avatar
 
Name: Finbarr Taylor
Last Online: 11-11-2009 07:46 AM
iTrader: (4)
Join Date: Apr 2008
Posts: 468
DNF$: 4,244
Location: Glasgow
Country:

Send a message via MSN to ftaylor

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.
__________________
GlasgowSEO.com is on auction on Sedo! Rank 2 on Google for 'glasgow seo'. CPC £3.35/$5.31. High advertiser competition. Glasgow is Scotland's largest city with over 1,000,000 inhabitants.
ftaylor is offline   Reply With Quote