Processing Form ASP using GET method to Email

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 25th, 2005, 02:45
New Member
Join Date: Feb 2005
Location: USA
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to rbrown1972
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?
  1. <label>Visual Basic:
    <input name="class" type="checkbox"
    value = "Visual Basic"/>
    </label>
  2. <label>Intro to Internet:
    <input name="class" type="checkbox"
    value = "Intro to Internet"/>
    </label>
  3. <label>Art:
    <input name="class" type="checkbox"
    value = "Art"/>
    </label>
  4. <label>E-commerce:
    <input name="class" type="checkbox"
    value = "E-commerce"/>
    </label>
Please select your favorite Instructor.</br>
<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

  #2 (permalink)  
Old Feb 25th, 2005, 05:13
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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
  #3 (permalink)  
Old Feb 25th, 2005, 05:23
New Member
Join Date: Feb 2005
Location: USA
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to rbrown1972
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
Closed Thread

Tags
processing, form, asp, using, method, email

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 15:30.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43