This is a discussion on "Processing Form ASP using GET method to Email" within the Classic ASP section. This forum, and the thread "Processing Form ASP using GET method to Email are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Processing Form ASP using GET method to Email
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Processing Form ASP using GET method to Email
Hello, I love this forum's new look by the way! I have coded a form that needs to be posted by the GET method using ASP and sent to email and do not know how to go about doing this. Any help at all in this area is greatly appreciated and needed. My code is as follows: <?xml version = "1.0"?> <DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtmll/DTD/xhtmll-strict.dtd"> <html xmlns="http://www.www.w3.org/1999/xhtml"> <head> <title> Rebecca Brown Lab 2 </title> <!--Rebecca Brown, February 19, 2005, February 20, 2005, Lab2, To create a student input information form.> <h2>Please fill out the Student Information Form </h2> </head> <body> Student information for Wake Tech </p> <form method ="get" action=myscript.asp"> <label>Student Name: <input name="name" type="text" size="25" max length = "30"/> </label> <label>Student Password: <input name="password" type="password" size="25" max length = "30"/> </label> <label>SSN No.: <input name="ssn" type="text" size="9" max length = "11"/> </label> <label>Email: <input name="email" type="text" size="25" max length = "30"/> </label> <label>Major: <input name="major" type="text" size="30" max length = "40"/> </label> <hr> </br>What classes would you like to take?
<ul> [*]<label>P. Chen: <input name="teacher" type="radio" value = "Chen"/> </label> [*]<label>G. Wallace: <input name="teacher" type="radio" value = "Wallace"/> </label> [*]<label>William Swanson: <input name="teacher" type="radio" value = "Swanson"/> </label>[/list] <hr> <label> Please select a book of interest <select name = "book"> <option selected="selected"> HTML for the WWW </option> <option>Internet and WWW Programming </option> <option>Intro to E-Commerce </option> <option>Unix Admin </option> </select> </label> <label> Tell us what you like about the school:</br> <textarea name="school" rows="4" cols = "36"> Enter your comments here.</textarea> </label></p> <input type="submit" value="Submit"/> <input type="reset" value="Reset"/> </form> </body> </html> Thank you for any help you can provide me. Rebecca |
|
|
|
|||
|
The simple way to send a form to email is using
action="mailto:joe@whatever.com" in the form property but to use ASP for it you'll probably want need to use CDOSYS or some 3rd party mail component like ASPemail. You can find plenty of code and example sof either of those on the web. We in fact have an article on it in the Articles: ASP forum... http://www.webforumz.com/viewtopic.php?t=3171 |
|
|||
|
ASP Processing Form
Catalyst,
Thank you very much. I am supposed to post the input elements to an ASP script and will check out your article and go from there. I have never used ASP but need to learn and real quick. Rebecca |
![]() |
| Tags |
| processing, form, asp, using, method, email |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ah form processing doing my head in! | 1840dsgn | PHP Forum | 7 | Jul 17th, 2007 23:14 |
| Email injection attack - simple protection method? | EdgeWalker | PHP Forum | 1 | Feb 15th, 2007 17:44 |
| Processing application and agreement form | beerboi | PHP Forum | 1 | Jun 26th, 2006 14:36 |
| problems with form processing | tooie | Classic ASP | 3 | Apr 26th, 2006 17:34 |
| Form processing javabean | kinjiro | PHP Forum | 0 | Aug 9th, 2004 14:18 |