Mailformulier

From Edgar BV Wiki
Revision as of 14:53, 19 January 2010 by 192.168.0.34 (talk) (New page: <?php if (isset($_POST['send'])) { $to = "info@tripany.com"; $subject = "Contact"; $headers = "From: Iphone widget!"; $name = $_POST['naam']; $company = $_POST['b...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<?php


if (isset($_POST['send'])) {

   $to = "info@tripany.com";
   $subject = "Contact";
   $headers = "From: Iphone widget!";
   $name = $_POST['naam'];
   $company = $_POST['bedrijf'];
   $tel =  $_POST['tel'];
   $email = $_POST['email'];
   $ask = $_POST['vraag'];
   $chk = $_POST['contact_me'];


   $body = "Van: $name\n Bedrijf: $company\n Tel: $tel\n E-mail: $email\n Vraag: $ask\n Contact mij: $chk\n ";
 mail($to, $subject, $body, $headers);
echo "Bedankt voor uw reactie.";


} else {

 echo "oeps, er iets fout gegaan!";

}


?>