hi there every one can some one help me sort this out so it send a text and a email please
i want it so it send a text to the number that the user enters in for them self i have tryed the code above but not got a text message yet and sent it to 2 phones as well please help me some one and thanks to any one that can help sort this out
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Tell A Friend About $sitename</title> </head> <body> <form action="<? echo $_POST['self']; ?>" method="post"> Your Name : <br /> <input name="name" type="text"><br /><br /> Your Phone Number : <br /> <input name="email" type="text"><br /><br /> <input name="Send" type="submit" value="Send"> </form> <? if (@$_POST['Send']=="Send") { $name=$_POST['name']; $email=$_POST['email']; $message= "Hello, \n\n" .$name. " thought you might be interested in visiting the following site : \n\nYour Web/wap site here - http://yoursitename.com \n\n\n\n\n\n\n\nNote: Which has chat/forums/games/quiz nights/chat nights and soon to have prizes: This message was not sent as spam it was sent by one of your friends on $sitename. It was sent through a form located at $sitename. Please forward this message on to all your friends thanks from $sitename."; $headers = 'From: Site email' . "\r\n" . 'Reply-To: site email' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($email, $message, $headers); echo "Your text was sent to: $email"; } ?> </body> </html>
Comment