Jump to content

Archived

This topic is now archived and is closed to further replies.

helmetsoff

Help with Forms

Recommended Posts

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>

Share this post


Link to post
Share on other sites
Have you read the manual entry for the [url=http://php.net/mail]mail[/url]() function? Good place to start.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
Each of the inputs need to have a unique name .... typically like this:

[code]<input type="text" name="QB" size=....>[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.