Team:UCL/FAQ/Contact
From 2014.igem.org
(Difference between revisions)
Lewismoffat (Talk | contribs) |
Lewismoffat (Talk | contribs) |
||
Line 16: | Line 16: | ||
if (!isset($_POST["submit"])) { | if (!isset($_POST["submit"])) { | ||
?> | ?> | ||
- | <form method="post" action="<?php echo $_SERVER["PHP_SELF"];? | + | <form method="post" action="<?php echo $_SERVER["PHP_SELF"];?> |
From: <input type="text" name="from"><br> | From: <input type="text" name="from"><br> | ||
+ | Email: <input type="text" name="email"><br> | ||
+ | Phone: <input type="text" name="phone"><br> | ||
Subject: <input type="text" name="subject"><br> | Subject: <input type="text" name="subject"><br> | ||
Message: <textarea rows="10" cols="40" name="message"></textarea><br> | Message: <textarea rows="10" cols="40" name="message"></textarea><br> | ||
Line 27: | Line 29: | ||
if (isset($_POST["from"])) { | if (isset($_POST["from"])) { | ||
$from = $_POST["from"]; // sender | $from = $_POST["from"]; // sender | ||
+ | $email = $_POST["email"]; | ||
+ | $phone = $_POST["phone"]; | ||
$subject = $_POST["subject"]; | $subject = $_POST["subject"]; | ||
$message = $_POST["message"]; | $message = $_POST["message"]; | ||
Line 32: | Line 36: | ||
$message = wordwrap($message, 70); | $message = wordwrap($message, 70); | ||
// send mail | // send mail | ||
- | mail(" | + | mail("ucligem@gmail.com",$subject,$message,"From: $from\n"); |
echo "Thank you for sending us feedback"; | echo "Thank you for sending us feedback"; | ||
} | } |
Revision as of 13:36, 16 September 2014