// THIS IS ALL THE PHP YOU NEED TO SEND AN EMAIL $foo = $HTTP_POST_VARS['foo']; $realname = $HTTP_POST_VARS['realname']; $email = $HTTP_POST_VARS['email']; $experience = $HTTP_POST_VARS['experience']; $useemail = $HTTP_POST_VARS['useemail']; $commonname = $HTTP_POST_VARS['commonname']; $sciencename = $HTTP_POST_VARS['sciencename']; $description = $HTTP_POST_VARS['description']; $foodrequirements = $HTTP_POST_VARS['foodrequirements']; $habitat = $HTTP_POST_VARS['habitat']; $misc = $HTTP_POST_VARS['misc']; // FIRST CHECK THAT SOME VARIABLE IS DEFINED (TO VERIFY THEY SUBMITTED THE FORM) if ($foo){ // HOW THE MESSAGE SHOULD BE FORMATTED // \n == RETURN, \t == TAB $message = "About the Sender\n"; $message .= "From: $realname ($email)\n"; $message .= "Experience with Frogs: $experience\n"; $message .= "Post Email on Info Page?: $useemail\n\n"; $message .= "About the Frog\n"; $message .= "Common Name: $commonname\n"; $message .= "Scientific Name: $sciencename\n"; $message .= "Description:\n $description\n"; $message .= "Food requirements:\n $foodrequirements\n"; $message .= "Habitat:\n $habitat\n"; $message .= "Miscellaneous Info:\n $misc\n"; // SEND THE MAIL mail("dorota@allaboutfrogs.org", "Frogland Frog Species Caresheet Feedback Form", "$message", "From: $email"); // REDIRECT THEM WHERE EVER YOU WANT header("Location: /froglnd.shtml"); } ?>
I would love some feedback! If you have a type of frog that is not in my list, please fill out this form as best as you can, and I will try to post
it as soon as I get a chance. Don't forget to double check that your frog isnt already listed! Any help I can get would be great!!!
If you have a picture of the type of frog you are describing, or know
where one can be found, let me know in the "Miscellaneous Info" section!