Jump to content


Photo

Info to email


  • Please log in to reply
1 reply to this topic

#1 Cheap Commercial

Cheap Commercial
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 22 April 2006 - 08:35 PM

hi there

what is the php script to send
all info submitted to my email

like

[a href=\"http://www.splices.org/test/wow.php?bob=\" target=\"_blank\"]http://www.splices.org/test/wow.php?bob=[/a]

???
please and thank you in advanced

#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 23 April 2006 - 12:53 PM

If you want to send yourself everything submitted, do something like this: (Lets say he submitted his name and phone number)
<?php
$to="me@host.com";
$subject="Info";
$msg="Name= ".$_POST['name]."/n Phone number= ".$_POST['tel'];
if(mail($to,$subject,$msg){echo "Mail sent";} else{echo "There was a problem sending your info";};
?>

Orio.
Think you're smarty?

(Gone until 20 to November)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users