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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing parameters

Status
Not open for further replies.

vwani

Programmer
May 26, 2004
10
US
Hi Friends,

I created a two radio button yes and no in one form.This form goes onto next form and depending on value of radio button does some action.
If I want to access the action of this radio button into another file too what should I do. I tried using the foll.
1st file

<form method="get" action="\property\proplist.asp">
<input type="radio" name="RegularAddDisplay" value="Yes" CHECKED>&nbsp;Yes&nbsp;&nbsp;&nbsp;<input type="radio" name="RegularAddDisplay" value="No">&nbsp;No
</form>

I go to proplist and try access the value of radio button and perform some function.Now from proplist.asp I go to yet another file which too wants to access the value of radio button.

proplist.asp
Dim str
str = request("RegularAddDisplay")
---
---
<input type="hidden" name="RegularDis" value="<%=strRegularAddDisplay%>">
---

From proplist.asp i go to display.asp and try to access the radio button value as


Dim str
str = request("RegularDis")
----
---

But by doing so I cannot access the value of the radio button.Please help I dont know where i am going wrong.

Thank You

 
The code looks ok...

but you should do this on the very top of the display.asp page

something like this:

<%Response.Buffer = True
str = request("RegularDis")
%>


-VJ
 
str = request("RegularAddDisplay")
---
---
<input type="hidden" name="RegularDis" value="<%=strRegularAddDisplay%>">

Shouldn't it be -> value="<%=str%>"?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top