HighDots Forums  

When does IF THEN get Processed

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss When does IF THEN get Processed in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dprulhiere
 
Posts: n/a

Default When does IF THEN get Processed - 11-19-2004 , 08:24 PM






My problems are so close to going away... Now the problem seems to be that the
IF THEN is not reading the field in the form It keeps defaulting to the ELSE
The Request.Form('Access') is user input and the IF THEN doesnt seem to 'wait'
for the input. It just'assumes' that the field is blank Heres the code... How
do I make it wait for user input? Thank you

If Request.Form("Access") = "realestatesales" Then
strAccess = "realtor"
Else
strAccess = "client"
End If


Reply With Quote
  #2  
Old   
Thierry Koblentz
 
Posts: n/a

Default Re: When does IF THEN get Processed - 11-19-2004 , 08:44 PM






dprulhiere wrote:
Quote:
My problems are so close to going away... Now the problem seems to
be that the IF THEN is not reading the field in the form It keeps
defaulting to the ELSE The Request.Form('Access') is user input and
the IF THEN doesnt seem to 'wait' for the input. It just'assumes'
that the field is blank Heres the code... How do I make it wait for
user input? Thank you
Did you try a Response.Write(Request.Form("Access")) to see if the strings
match.
But what is the context? You do his *after* processing the form, right?

--
Thierry
-----------
Pure CSS Navigation Menu | Scalable Tabs
http://www.kaosweaver.com/extensions/details.php?id=76




Reply With Quote
  #3  
Old   
dprulhiere
 
Posts: n/a

Default Re: When does IF THEN get Processed - 11-19-2004 , 08:51 PM



I got it now...It works GREAT. Thank you for your thoughts and stimulation


Needed to remove the .Form and all worked fine


Reply With Quote
  #4  
Old   
Thierry Koblentz
 
Posts: n/a

Default Re: When does IF THEN get Processed - 11-20-2004 , 01:57 AM



dprulhiere wrote:
Quote:
I got it now...It works GREAT. Thank you for your thoughts and
stimulation
That's why I was asking about "context". You didn't say if you were using
"post" or "get".
Instead of removing ."Form" I would use Request.QueryString()
If it works without ".Form" it's because it is looking in *both* collections

--
Thierry
-----------
Pure CSS Navigation Menu | Scalable Tabs
http://www.kaosweaver.com/extensions/details.php?id=76





Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.