Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the value from a form on a previous ASP

Status
Not open for further replies.

princessk1

Programmer
Feb 28, 2002
74
CA
I am trying to get the value from a combobox on a previous ASP where the code is between the <SCRIPT> tags. I have tried this line of code:

regionName = request(&quot;region&quot;)
and
regionName = request.form(&quot;region&quot;)

Region is the name of the combobox.
It gives me the error &quot;Type Mismatch&quot;. I am unsure of the correct syntax. Thanks in advance.
 
Try using:

<%

regionName = Request.Form(&quot;region&quot;)

%>
Hope this helps.

Change Your Thinking, Change Your Life.
 
I'm not totally sure it's a problem with getting the code...perhaps you can provide some code for us to see so we may have a better understanding? thanks. -Ovatvvon :-Q
 
well I suggest you one idea.

Just make form method post to get or remove that attribute (As default is get)

Now submit it and in the address bar try to find Region=&quot;..&quot;

If you are getting value here,you must be getting it on destination page.

This is the way i solve this type of problems. Rushi Shroff Rushi@emqube.com
&quot;Life is beautiful.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top