ssj4sunny Posted September 19, 2009 Share Posted September 19, 2009 hi there guys, im pretty new to php and i need it to process my form. <?php $name = $_REQUEST ['name'] ; $email = $_REQUEST ['email'] ; $what = $_REQUEST ['what'] ; mail( "sunny@sunny-shah.co.uk", "free quote", $email, $what, "From: $name" ); header( "Location: http://sunny-shah.co.uk"); ?> i tried out the form here: http://sunny-shah.co.uk/services.html but i never got an email in my inbox when the form was sent help would be appreciated thank you, sunny Quote Link to comment Share on other sites More sharing options...
ozestretch Posted September 20, 2009 Share Posted September 20, 2009 email() function params: mail($to, $subject, $message, $headers); <?php $name = $_REQUEST ['name'] ; $email = $_REQUEST ['email'] ; $what = $_REQUEST ['what'] ; $headers .= 'From: '.$name.' <'.$email.'>' . "\r\n"; mail( "sunny@sunny-shah.co.uk", "free quote", $what, $headers ); header( "Location: http://sunny-shah.co.uk"); ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.