helmetsoff Posted August 17, 2006 Share Posted August 17, 2006 Help.. i cant figure out how to make a PHP Email Form. I want all of the following information sent to my email address.. i'm new to this.heres the code..i have so far.. i know i did the "mailto:" part wrong, and i dont want that in there at all... i want the submit button to have ithe reseults automatically sent to my email, and the subject in my emails to read "Rank My Team" for each submission.. thankssss:<form action="mailto:helmetsoff@yahoo.com?subject=Rank my Team" method="post" enctype="text/plain"><table><tr><td><u>Your League Point Setup</u><br>Number of Teams in League: <INPUT TYPE="text" SIZE=5><BR>QB Touchdown Points Passing: <INPUT TYPE="text" SIZE=5><BR>QB Touchdown Points Rushing: <INPUT TYPE="text" SIZE=5><BR>QB Passing Yards per Point: <INPUT TYPE="text" SIZE=5><BR>RB Touchdown Points Rushing: <INPUT TYPE="text" SIZE=5><BR>RB Rushing Yards per Point: <INPUT TYPE="text" SIZE=5><BR>WR Touchdown Points: <INPUT TYPE="text" SIZE=5><BR>WR Receiving Yards per Point: <INPUT TYPE="text" SIZE=5><BR><br><br><u>Your Team</u><br>QB: <INPUT TYPE="text" SIZE=20"><BR>WR1: <INPUT TYPE="text" SIZE=20 ><BR>WR2: <INPUT TYPE="text" SIZE=20><BR>RB1: <INPUT TYPE="text" SIZE=20><BR>RB2: <INPUT TYPE="text" SIZE=20><BR>TE: <INPUT TYPE="text" SIZE=20><BR>WR/RB:<INPUT TYPE="text" SIZE=20><BR>K: <INPUT TYPE="text"><BR>DEF: <INPUT TYPE="text" SIZE=20><BR>Bench1: <INPUT TYPE="text" SIZE=20><BR>Bench2: <INPUT TYPE="text" SIZE=20><BR>Bench3: <INPUT TYPE="text" SIZE=20><BR>Bench4: <INPUT TYPE="text" SIZE=20><BR>Bench5: <INPUT TYPE="text" SIZE=20><BR></td></tr><tr><td align=center><INPUT TYPE="submit" value="submit" style="color: #ffffff; background-color: #000000"></td></tr></table></FORM></body></html> Quote Link to comment Share on other sites More sharing options...
trq Posted August 17, 2006 Share Posted August 17, 2006 Have you read the manual entry for the [url=http://php.net/mail]mail[/url]() function? Good place to start. Quote Link to comment Share on other sites More sharing options...
helmetsoff Posted August 27, 2006 Author Share Posted August 27, 2006 yeah but when it emails, the only thing i can get to send is the first input area.. the entire form results don't send..can someone please help? Quote Link to comment Share on other sites More sharing options...
AdRock Posted August 27, 2006 Share Posted August 27, 2006 does a user have to enter some data into the form? Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 28, 2006 Share Posted August 28, 2006 Each of the inputs need to have a unique name .... typically like this:[code]<input type="text" name="QB" size=....>[/code] Quote Link to comment 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.