Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > Classic ASP

Closed Thread
 
LinkBack Thread Tools
Old February 24th, 2005, 10:45 PM   #1
New Member
 

Join Date: Feb 2005
Location: USA
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 rbrown1972 is on a distinguished road
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
rbrown1972 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old February 25th, 2005, 01:13 AM   #2
WebForumz Admin Badge
 

Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 118 Webforumz Staff is on a distinguished road
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
Webforumz Staff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old February 25th, 2005, 01:23 AM   #3
New Member
 

Join Date: Feb 2005
Location: USA
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 rbrown1972 is on a distinguished road
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
rbrown1972 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Bookmarks

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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 7 July 17th, 2007 07:14 PM
Email injection attack - simple protection method? EdgeWalker PHP 1 February 15th, 2007 01:44 PM
Processing application and agreement form beerboi PHP 1 June 26th, 2006 10:36 AM
problems with form processing tooie Classic ASP 3 April 26th, 2006 01:34 PM
Form processing javabean kinjiro PHP 0 August 9th, 2004 10:18 AM


Search Engine Optimization by vBSEO 3.2.0 RC8