Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Need Help With ASP Form Processing
Old 01-15-2005, 11:17 PM Need Help With ASP Form Processing
Novice Talker

Posts: 11
Trades: 0
I'm not a programmer at all, so be gentle please.
I would like to have a Form on one of my pages that consists of a bunch of checkboxes, then based on which checkboxes are checked, the content of the results page changes.

I found a page that is doing almost exactly what I'm trying to accomplish here

Can anyone tell me how this is being done?
It seems like it would be pretty simple, but again I'm not a programmer so I'm kinda lost.
I think I need some sort of Form Processing Script, but all I ever find are ones that do email, nothing like the above example.

Any help is appreciated
Thanks
bowfonz is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-18-2005, 11:24 PM
Novice Talker

Posts: 11
Trades: 0
Ok, no responses. So I went out and bought a book and I've been reading through it and trying the examples. I understand how everything works now. I've refreshed my memory on some very basic programming knowledge I got years ago enough to get through this by writing my own code to process the form.

I'm only missing a couple details that I can't seem to find in the book.

On my form page I'm still using an HTML form with checkboxes. (I'd prefer not to have to rewrite the form in ASP Web Form code if possible)
Code:
<form NAME="LifeStyleForm" ACTION="formhandler.aspx" METHOD="POST">
insert text here<input TYPE="CHECKBOX" NAME="energy">
insert text here<input TYPE="CHECKBOX" NAME="illness">
...
...
How do I access the true/false values of the checkboxes from the formhandler.aspx page to process them?
This is not covered in my book. Any help here would be appreciated.

Thanks
bowfonz is offline
Reply With Quote
View Public Profile
 
Old 01-20-2005, 02:23 AM
vivekar's Avatar
Webmaster Talker

Posts: 612
Trades: 0
you use the "name" attribute of the element to access its value.
<input type="checkbox" name="reminder" value = "1" >

in Classic ASP(.asp),
Request.Form("reminder")

In asp.net (.aspx extension),

Use it like

Dim remVal as Int
remVal = reminder.SelectedItem.Text

Check out sites:
http://www.codeproject.com/aspnet/
http://asp.net/
www.learnasp.com
__________________

Please login or register to view this content. Registration is FREE
(Active since 2003) |
Please login or register to view this content. Registration is FREE
vivekar is offline
Reply With Quote
View Public Profile Visit vivekar's homepage!
 
Old 01-20-2005, 09:54 PM
Novice Talker

Posts: 11
Trades: 0
Thanks for the reply.
I did finally find an example that showed the request.form("name") thing.
After some tweaking, everything works great.
And it's much more satisfying having figured most of it out and written the scripts myself.

Thanks again
bowfonz is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need Help With ASP Form Processing
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.97355 seconds with 12 queries