Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old August 16th, 2003, 05:25 PM
tattmanjoker tattmanjoker is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 8 tattmanjoker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to tattmanjoker
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

Reply With Quote
  #2  
Old August 16th, 2003, 07:14 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
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.

Reply With Quote
  #3  
Old August 16th, 2003, 07:39 PM
tattmanjoker tattmanjoker is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 8 tattmanjoker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to tattmanjoker
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

Reply With Quote
  #4  
Old August 17th, 2003, 02:48 AM
filefrog filefrog is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: West Peoria, IL
Posts: 62 filefrog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to filefrog
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:
Original - php Code
  1.  
  2. <?
  3. // output form
  4. ?>
  5. <form method="post" action="mail.php">
  6. <input type="text" name="test" /><br />
  7. <input type="submit" />
  8. </form>


and then the mail.php script:
php Code:
Original - php Code
  1.  
  2. <?
  3.  
  4. $test_val = $_POST['test'];
  5. mail("you@yourdomain.com","Email from Form","Someone posted : $test_val");
  6. ?>


I leave it up to you to actually adapt the concept to your specific needs.

Reply With Quote
  #5  
Old August 17th, 2003, 04:20 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
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 ;)

Reply With Quote
  #6  
Old August 17th, 2003, 04:24 PM
tattmanjoker tattmanjoker is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 8 tattmanjoker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to tattmanjoker
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

Reply With Quote
  #7  
Old August 18th, 2003, 06:10 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
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

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Need this to post to my e-mail


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT