!!!!! Posted January 21, 2007 Share Posted January 21, 2007 Is it possible to send form content submitted by users of my website to my e-mail address? I have heard that HTML's E-Mail thing doesn't work very well with most browsers, but that PHP works like 100% of the time. My code for all of the form is HTML... so is it possible to submit the content of an HTML form through e-mail using PHP? heres my form code, I would greatly appreciate it if somebody could perhaps write a teensy bit of code to add on to somewhere in this code:[code]<form name="input" action="mmmmm.php"method="get"><textarea cols="40" rows="5" name="why">Why do you want to join TheWWRA? Enter answer in this box.</textarea><br><br>Do you know how to write script in HTML?<br><input type="radio" name="html" value="yes"> Yes, I know HTML.<br><input type="radio" name="html" value="no"> No, I do not know how to write in HTML.<br><br>Are you active online?:<br><input type="radio" name="active" value="yes"> Yes, I am very active.<br><input type="radio" name="active" value="regularly"> I am not on 24/7, but I am online regularly.<br><input type="radio" name="active" value="no"> I am not very active.<br><br>What is your E-Mail Address {We will need it to send you a message stating that you have been given your desired TheWWRA job.}:<br><input type="text" name="email" value="E-Mail Goes Here"><br><br>The last Question, what job would you like in TheWWRA? <br>NOTE #1: To be a Page Editor you must have knowledge of HTML.<br>NOTE #2: To be a Moderator you must have a post count of atleast 50 on the TheWWRA Forums. If you DO have a post count of atleast 50, an Administrator, me or somebody else, will review all of your posts on the Forums and decided whether or not you have earned the right to be a Moderator.<br>NOTE #3: "Quest Info Obtainers" are in-game workers. They go around doing Quests and making Guides on how to do them. All Credit for that Quests info will be given to the person who obtained that info. If 1 of the Quest Info Obtainers misses a little bit of Information in that Quest then another Info Obtainer can send me the missing Info through the "Report-New-Info" system. <br>Note #4: "Skill Info Obtainers do the same thing as Quest Info Obtainers except... Well... With Skills.<br>Last Note: Full Pledged Workers collect all Monster Info, Item Info, and anything else they can find. Like Mini-Quests or Mini-Games, etc.<br><select name="dropdown"><option value="editor">Page Editor</option><option value="moderator">Forum Moderator</option><option value="quest">Quest Info Obtainer</option><option value="skill">Skill Info Obtainer</option><option value="fulltime">Full Pledged Worker</option><br><input type="submit" value="Submit Info"></form>[/code]Don't mind the sentences... :-p Quote Link to comment https://forums.phpfreaks.com/topic/35059-is-it-possible/ Share on other sites More sharing options...
trq Posted January 21, 2007 Share Posted January 21, 2007 Take a look at the [url=http://php.net/mail]mail[/url] function. Quote Link to comment https://forums.phpfreaks.com/topic/35059-is-it-possible/#findComment-165465 Share on other sites More sharing options...
bibby Posted January 21, 2007 Share Posted January 21, 2007 put this in your post handler.[code]$body= "Someone posted this \n";foreach($_POST as $k=>$v){ $body.= "[$k] => $v \r\n"; //<-- for mail, you may want the carriage return \r}mail ('you@yours.com',$body,'From: yourfile@yours.com');[/code] Quote Link to comment https://forums.phpfreaks.com/topic/35059-is-it-possible/#findComment-165467 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.