Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Drop variable into Request.Form statement

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,150
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Drop variable into Request.Form statement
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Drop variable into Request.Form statement - 6/10/2001 10:35:19 AM   
  cruiser

 

Posts: 25
Score: 0
Joined: 6/4/2001
From: USA
Status: offline
Hi - I'm trying to drop a variable in a Request.Form query like so:

If Request.Form("item" & myVar) Then..

Obviously the above doesn't work. I've tried about ten different
configurations of the above, like Request.Form(myVar) etc, and
each time I get this error :- Type mismatch: '[string: ""]'

Surely there is a way to drop a variable into a Request.Form
procedure?
 
 
Post #: 1
 
 Re: Drop variable into Request.Form statement - 6/10/2001 10:36:53 AM   
  aspprogrammer

 

Posts: 10
Score: 0
Joined: 6/9/2001
From: Belgium
Status: offline
Don't know if this is what you are trying to do or not but I think
what you are trying to do is this: request a piece of data from a
form, then use that data in conjunction with something else to test a
condition. If this is the case, you should assign the form field to a
var then add the data to that var. You can then use this to test your
conditional (If..Then) in this case.

Something like this should work (using your myVar example).

Dim myVar
Dim myVar2


'set myVar = to whatever
myVar2 = Request.Form("item")
myVar2 = myVar2 & myVar
If myVar2 = whatever then....


Hope this helps,

(in reply to cruiser)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Drop variable into Request.Form statement Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts