Request Object and dynamic form item names 
Author Message
 Request Object and dynamic form item names

I'm trying to access a form item using a name that I build dynamically and
cannot get this to work.

I'm processing the input using ASP/VBScript.  I have a field defined on the
form with name="fld_123".   In my VBScipt which processes the form, I can
reference that field using the standard Request object.... e.g.
Request("fld_123")  .  But what I really need to do is to reference that
variable using a dynamically-computed name such as:
tmpkey = "fld_" & "123"
theval = Request(tmpkey)

I get an empty string every time I try to use a variable in the Request
command.  The only thing that works is a literal.

Any suggestions?

Thanks.



Tue, 25 Nov 2003 00:16:35 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Dynamic Creation of Object Names - Forms

2. Reading dynamic control values using Request.Form

3. dynamic Request.Form call

4. Help: passing the name of a form item

5. finding the FORM item NAME on server side!

6. Finding Request.Form Name

7. Request.Form on dynamically named text boxes

8. Request Form Name???

9. request.form("name")

10. Dynamic Object Names?

11. dynamic form name creation

12. Need Form object given only the form name (string)

 

 
Powered by phpBB® Forum Software