logo
g Text Version
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Sports
Travel & Culture
TV & Movies

dailyclick
Bored? Games!
Nutrition
Postcards
Take a Quiz
Rate My Photo

new
Houseplants
Romance Movies
Creativity
Family Travel
Southwest USA
Irish Culture
Home Finance


dailyclick
All times in EST

Full Schedule
g
g ASP Site

BellaOnline's ASP Editor

g

Using ASP to Process Forms

Guest Author - Lisa Shea

ASP is perfect for processing forms of all kinds, from polls to mail forms to guestbooks and much more. Here are instructions on having ASP get information from a form.

First, of course, you need the form set up. A form is a regular HTML statement, so visit the BellaOnline HTML Site if you don't understand HTML forms. Let's do a simple yes/no poll. So the syntax for the poll form would be:

<B>Should Chocolate Be Banned?</B>
<form action="polls_p.asp" method="post">
<input type="radio" name="vote" value="YES"> YES
<input type="radio" name="vote" value="NO"> NO
<input type="submit" name="Vote!" value="Vote!">
</form>

OK, you have your form, and it points to polls_p.asp for its processing. Now you want to build your polls_p.asp page to actually do something with this user's vote.

So the very first thing you have to do is get whatever choice they made! You do that with the REQUEST command. The name of the field is vote. So all you do is say

Vote = Request("vote")

That's it! Now you have a variable called Vote, and in it is either YES or NO. It's just a matter of using that with your database commands! You can do that with as many fields as you wish, so your form could have say 20 fields and be a complex application form. You just REQUEST each field one by one and put each into a variable.

Inserting Into a Database with ASP
Updating a Database with ASP

Introduction to ASP Ebook

Download this ebook to get everything you need to know about learning ASP - from a step by step tutorial to function lists, sample code, common errors and solutions, and much more! 101 pages.
This site needs an editor - click to learn more!

Add Using+ASP+to+Process+Forms to Twitter Add Using+ASP+to+Process+Forms to Facebook Add Using+ASP+to+Process+Forms to MySpace Add Using+ASP+to+Process+Forms to Del.icio.us Digg Using+ASP+to+Process+Forms Add Using+ASP+to+Process+Forms to Yahoo My Web Add Using+ASP+to+Process+Forms to Google Bookmarks Add Using+ASP+to+Process+Forms to Stumbleupon Add Using+ASP+to+Process+Forms to Reddit




RSS | Related Articles | Editor's Picks Articles | Top Ten Articles | Previous Features | Site Map


For FREE email updates, subscribe to the ASP Newsletter


Past Issues


print
Printer Friendly
bookmark
Bookmark
tell friend
Tell a Friend
forum
Forum
email
Email Editor


Content copyright © 2014 by Lisa Shea. All rights reserved.
This content was written by Lisa Shea. If you wish to use this content in any manner, you need written permission. Contact BellaOnline Administration for details.

g


g features
Best uses for RSS

RSS and its future.

Force Download Dialog box with ASP

Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Poetry
Daily
Weekly
Monthly
Less than Monthly



BellaOnline on Facebook
g


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2014 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor