|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Need this to post to my e-mail
ok all...heres what i want this to do but for some reason cant......i want this form to post to my e-mail after someone has finished their picks, and they hit submit:
<HTML><HEAD> <TITLE>JAM TIME ALL-STARS (FOOTBALL)</TITLE> <STYLE TYPE=text/css> TD{ font-family:times,palatino,serif; font-size:12px;color:red; } INPUT{ font-family:courier,monotype.com,serif; font-size:12px;color:black; background:blue; } </STYLE> </HEAD> <BODY BGCOLOR=YELLOW><CENTER> <FORM ACTION="mailto:myname@internet.com" METHOD=POST> <center>Game 1 (9-4-03 8PM)</center> <INPUT TYPE=RADIO NAME="A" VALUE="New York Jets">New York Jets <INPUT TYPE=RADIO NAME="A" VALUE="Washington Redskins">Washington Redskins<br> <center>Game 2 (9-7-03 12PM)</center> <INPUT TYPE=RADIO NAME="B" VALUE="Arizona Cardinals">Arizona Cardinals <INPUT TYPE=RADIO NAME="B" VALUE="Detroit Lions">Detroit Lions<br> <center>Game 3 (9-7-03 12PM)</center> <INPUT TYPE=RADIO NAME="C" VALUE="Baltimore Ravens">Baltimore Ravens <INPUT TYPE=RADIO NAME="C" VALUE="Pittsburgh Steelers">Pittsburgh Steelers<br> <center>Game 4 (9-7-03 12PM)</center> <INPUT TYPE=RADIO NAME="D" VALUE="Denver Broncos">Denver Broncos <INPUT TYPE=RADIO NAME="D" VALUE="Cincinnati Bengals">Cincinnati Bengals<br> <center>Game 5 (9-7-03 12PM)</center> <INPUT TYPE=RADIO NAME="E" VALUE="Houston Texans">Houston Texans <INPUT TYPE=RADIO NAME="E" VALUE="Miami Dolphins">Miami Dolphins<br> <center>Game 6 (9-7-03 12PM)</center> <INPUT TYPE=RADIO NAME="F" VALUE="Indianapolis Colts">Indianapolis Colts <INPUT TYPE=RADIO NAME="F" VALUE="Cleveland Browns">Cleveland Browns<br> <center>Game 7 (9-7-03 12PM)</center> <INPUT TYPE=RADIO NAME="G" VALUE="Jacksonville Jaguars">Jacksonville Jaguars <INPUT TYPE=RADIO NAME="G" VALUE="Carolina Panthers">Carolina Panthers<br> <center>Game 8 (9-7-03 12PM)</center> <INPUT TYPE=RADIO NAME="H" VALUE="Minnesota Vikings">Minnesota Vikings <INPUT TYPE=RADIO NAME="H" VALUE="Green Bay Packers">Green Bay Packers<br> <center>Game 9 (9-7-03 12PM)</center> <INPUT TYPE=RADIO NAME="I" VALUE="New England Patriots">New England Patriots <INPUT TYPE=RADIO NAME="I" VALUE="Buffalo Bills">Buffalo Bills<br> <center>Game 10 (9-7-03 12PM)</center> <INPUT TYPE=RADIO NAME="J" VALUE="San Diego Chargers">San Diego Chargers <INPUT TYPE=RADIO NAME="J" VALUE="Kansas City Chiefs">Kansas City Chiefs<br> <center>Game 11 (9-7-03 12PM)</center> <INPUT TYPE=RADIO NAME="K" VALUE="St. Louis Rams">St. Louis Rams <INPUT TYPE=RADIO NAME="K" VALUE="New York Giants">New York Giants<br> <center>Game 12 (9-7-03 3:15PM)</center> <INPUT TYPE=RADIO NAME="L" VALUE="Atlanta Falcons">Atlanta Falcons <INPUT TYPE=RADIO NAME="L" VALUE="Dallas Cowboys">Dallas Cowboys<br> <center>Game 13 (9-7-03 3:15PM)</center> <INPUT TYPE=RADIO NAME="M" VALUE="Chicago Bears">Chicago Bears <INPUT TYPE=RADIO NAME="M" VALUE="San Francisco 49ers">San Francisco 49ers<br> <center>Game 14 (9-7-03 3:15PM)</center> <INPUT TYPE=RADIO NAME="N" VALUE="New Orleans Saints">New Orleans Saints <INPUT TYPE=RADIO NAME="N" VALUE="Seattle Seahawks">Seattle Seahawks<br> <center>Game 15 (9-7-03 3:15PM)</center> <INPUT TYPE=RADIO NAME="O" VALUE="Oakland Raiders">Oakland Raiders <INPUT TYPE=RADIO NAME="O" VALUE="Tennessee Titans">Tennessee Titans<br> <center>Game 16 (9-8-03 8PM)</center> <INPUT TYPE=RADIO NAME="P" VALUE="Tampa Bay Buccaneers">Tampa Bay Buccaneers <INPUT TYPE=RADIO NAME="P" VALUE="Philadelphia Eagles">Philadelphia Eagles<br><br> <INPUT TYPE=RESET VALUE=" Reset "><INPUT TYPE=SUBMIT VALUE=" Submit "></FORM></BODY></HTML> i would appreciate any help possible, tyvm, tatt |
|
#2
|
|||
|
|||
|
RE: Need this to post to my e-mail
c an you post the code that is not working? It will help us determine where your problem lies.
|
|
#3
|
|||
|
|||
|
RE: Need this to post to my e-mail
Hiya eddie,
that is the code thats not working.....when i hit submit a window comes up saying im sending me e-mail addy to the recipient and when i pick ok it does not send my form with my picks to my e-mail...im stumped....and yes i do have my true e-mail in my code on my site..not the myname 1...but it doesnt open my default mail and if i change it to get instead of post it does open my mail to send but the message part is blank..plzzzz help and again ty and much appreciation. tatt |
|
#4
|
|||||
|
|||||
|
RE: Need this to post to my e-mail
I don't believe you can set the action to a mailto:emailaddy
What you *can* do is set the form so that it sends its data to a script whose sole purpose is to collect the data, pretty it up, and then mail() it to you. For example: php Code:
and then the mail.php script: I leave it up to you to actually adapt the concept to your specific needs. |
|
#5
|
|||
|
|||
|
RE: Need this to post to my e-mail
yes you can set mailto: url as form action. but the visitor to your site will have his mail client opened, and he will have to clike "send" (or similar) button to really send you the form data..
but anyway, like filefrog, i also recommend a much better way: a server side script. just look for "formmail php" at google for a generic-all-purpose-form-mail script ;) |
|
#6
|
|||
|
|||
|
RE: Need this to post to my e-mail
ty all but i want the code i made to work........i want the results from the picks to go to my e-mail and yes i want the client side mail to open and they then c there picks and then push send...plzzzzz help ty all again i appreciate this a bunch
tatt |
|
#7
|
|||
|
|||
|
RE: Need this to post to my e-mail
OK, Here is what I have found. When using the mailto call in a form action tag, the message is sent directly to the mail client with the choices sent as an attachment. (at least in outlook it did that.) I could not test to see if the message was sent, because I am not able to get to my mail server presently but after submitting the form and then oppening outlook, there was a message in my outbox waiting to be sent with an attachment. The attachment had a .att extension and I had to jump through hoops to actually view the attachment. So based on what you want to do, this wont work.
The only way I can see this being done is by using a JavaScript function that would read the values of the selected radio buttons, then form a string based on theose values and then use the location.href object along with the mailto call to invoke the the mail window. BTW to get the values into the body of the message, form the mailto call like this: mailto:mailto:myname@internet.com?subject=These are my picks&body= + MYRADIOVALUES |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Need this to post to my e-mail |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|