ASP forms in Dreamweaver

This is a discussion on "ASP forms in Dreamweaver" within the Classic ASP section. This forum, and the thread "ASP forms in Dreamweaver are both part of the Program Your Website category.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 15th, 2006, 10:36
Junior Member
Join Date: Dec 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
ASP forms in Dreamweaver

Hello all,

I have a page with a radio buttons on with options of yes or no. There is a submit button under it all in a form. This is what I would like to do:

IF Yes (radio button selected) then
update 3 fields in the database to 'No'
and update another in the same record to 'Yes'

IF No (radio button selected) then
update 3 fields in the database to 'N/A'
and update another in the same record to 'No'

Is this possible and I have brought over the recordID from the previous page to ensure we are talking about the same record...otherwise I suppose we would be ammending random records!!

(Also please note that the Yes/No radio button group is conditional based on the field in the database...meaning, if it says Yes, then the radio button will be yes.

Hope you can help/know what I am babbling on about!!
Reply With Quote

  #2 (permalink)  
Old Feb 16th, 2006, 18:31
Reputable Member
Join Date: Sep 2003
Location: USA
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Re: ASP forms in Dreamweaver

I'm not sure what this has to do with dreamweaver, but on the page that receives your code you should have some processing that does exactly what you described.
Code: Select all
if request.form("controlname")="yes" then [run these update statements]
elseif request.form("controlname")="no" then [run these other update statements]
else [do something]
end if
Reply With Quote
Reply

Tags
asp, forms, dreamweaver

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
dreamweaver forms? GeekyBabe Starting Out 6 Jan 30th, 2008 09:56
adobe dreamweaver Vs. Macromedia dreamweaver jahphill Scripts and Online Services 21 Nov 2nd, 2007 03:19
Email forms in dreamweaver schwell Web Page Design 9 Feb 11th, 2007 02:14
Dreamweaver user, tip on forms Joolsd186 Web Page Design 4 Nov 3rd, 2006 15:17
Forms in Dreamweaver Stephanie Web Page Design 2 Jan 6th, 2004 10:01


All times are GMT. The time now is 20:56.


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