HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

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 ASP Free Forums Sponsor:
  #1  
Old October 2nd, 2004, 03:46 PM
anime_dude anime_dude is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 3 anime_dude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation Basic form code

What would the code be for a basic form containing 3 text input fields and a submit button that sends it to my e-mail?

Reply With Quote
  #2  
Old October 2nd, 2004, 08:32 PM
wacko wacko is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Bryant, AL
Posts: 9 wacko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to wacko Send a message via MSN to wacko
Here you go

Quote:
form METHOD "POST"
<p>
input type="text" name="T1" size="20" <p>
<a href="mailto:you@youremail.com">
<input type="button" value="email" name="B1" </a></p>
</form>

put the input type"text " 2 more times, obviously you can space them out between them with a <p> or <br>
which ever one works for you.

Hope it helps


Regards,


Wacko
Wackos Online

Reply With Quote
  #3  
Old October 2nd, 2004, 09:27 PM
anime_dude anime_dude is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 3 anime_dude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Well it created a input field (which i already knew how to do) but when you click the send button nothing happens.

Reply With Quote
  #4  
Old October 7th, 2004, 07:58 AM
mathew_conte's Avatar
mathew_conte mathew_conte is offline
this time, it's not kitty
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Ontario, Canada
Posts: 435 mathew_conte User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 2 h 23 m 25 sec
Reputation Power: 5
It was coded to do nothing.

You would need to add an 'Action' to your form.

You can do two basic things here to send mail.

<Form Method="post" Action="mailto:youremail@hotmail.com?subject=This is the subject for the email">
' this would then open up outlook (if it is default mail client) with the above e-mail in the 'To' line and the subject, after the ?, in the subject line.

OR

<Form Method="post" Action="emailPage.asp">
'this would then open your page called emailPage.asp (or any other name you want) and execute the asp/vbscript code within it.
'This is where you would add a mail component code (CDONTS, CDOSYS ect...)

The more favorable method would be the second.
Judging from your post you would like the entire code provided to you.
I suggest a search on this forum or google. Both have tons of stuff on sending e-mail through forms.

Good luck
__________________
__________
Matty.

Reply With Quote
  #5  
Old October 12th, 2004, 08:09 PM
anime_dude anime_dude is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 3 anime_dude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by mathew_conte
It was coded to do nothing.

You would need to add an 'Action' to your form.

You can do two basic things here to send mail.

<Form Method="post" Action="mailto:youremail@hotmail.com?subject=This is the subject for the email">
' this would then open up outlook (if it is default mail client) with the above e-mail in the 'To' line and the subject, after the ?, in the subject line.

OR

<Form Method="post" Action="emailPage.asp">
'this would then open your page called emailPage.asp (or any other name you want) and execute the asp/vbscript code within it.
'This is where you would add a mail component code (CDONTS, CDOSYS ect...)

The more favorable method would be the second.
Judging from your post you would like the entire code provided to you.
I suggest a search on this forum or google. Both have tons of stuff on sending e-mail through forms.

Good luck

Ok, thank you very much!

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > Basic form code


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 1 hosted by Hostway