Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. mail($email, $subject, $autoreply);
  2. mail($default, $subject, $autoreply, $naam, $email, $telefoon_nr, $adres, $email_partner);
  3.  
  4. <form action="somefile.php" method="post">
  5. <input type="text" name="firstname" id="firstname">
  6. <input type="text" name="lastname" id="lastname">
  7. <input type="number" name="age" id="age">
  8. <input type="submit" name="submit" id="submit" value="Submit">
  9. </form>
  10.  
  11. <?
  12. if (isset($_POST['submit'])){
  13. $first = $_POST['firstname']; $last = $_POST['lastname'];
  14. $age = $_POST['age'];
  15. $body = "First name: ".$first." Last name: ".$last." Age: ".$age;
  16. mail("example@example.com", "sample subject", $body);
  17. }
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement