Brain fried: RadioButton in ASP

eramgarden

Well-known member
Joined
Mar 8, 2004
Messages
579
This is ASP NOT ASP.Net:

My brain is just beyond fried..

I have 2 pages: page 1, page2. Page1 has 2 radiobuttons. I want to decide which one is selected and pass the value to the next page

-- I have tried these:
Code:
<input type="radio" name="Sec1" [b]value=<%session("TS")= "TS" %>[/b] ID="Radio2" >Technical Services<br>

<input type="radio" name="Sec1" [b]value=<%session("PS")= "PS" %>[/b] ID="Radio3">Public Services<br>
But both sessions have values in them when I click , for example, the first one.

2.

Code:
<input type="radio" name="Sec1" value="DI"  [b]onclick[/b]="<%session("DI")= "DI" %>" ID="Radio1">Director<br>
						<input type="radio" name="Sec1" value="TS"  [b]onClick[/b]="<%session("TS")= "TS" %>" ID="Radio2" >Technical Services<br>
Same issue as above

3. Used a function:

Code:
 ....onclick="Javascript:RadioValue(<%session("DI")= "DI" %>)"
...
<script Language=JavaScript Runat=server>
 function RadioValue(XX){
       
 }
</script>
But how do I save the value in a session variable in the function?

Please HELP!
 
Back
Top