Created
May 2, 2014 17:04
-
-
Save Tim-Machine/2126f03c3030b6cf9c4c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form action='submit.php' method="post"> | |
| <input type="text" name="email"/> | |
| <textarea name="emailbody"></textarea> | |
| <input type="submit" value="submit" /> | |
| </form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $email = $_POST['email']; // this really should be cleaned | |
| $emailBody = $_POST['emailbody']; // clean this too | |
| function sendEmail($email,$emailbody) | |
| { | |
| // send email | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment