M
Mirovk
Hi,
I have a session variable wich value arrives from a previous .asp but
in my actual page I need to modify it based upon a selected value from
a radio button.
I will try to figure out for better understanding:
page1.asp ---> session("PaymentMethod")
page2.asp ---> Depending on the radio button selected the payment
method could be (check, transfer, creditcard) and this value must be
assigned to "PaymentMethod" session variable for further processing.
1.- In my form I created the hidden value:
<input type="Hidden" name="PaymentMethod" value="" id="PaymentMethod"
/>
2.- Radio buttons at the form
<input type="radio" checked name="btn_tipo_pago" value="1" > 1.
Payment: Check</td>
<input type="radio" checked name="btn_tipo_pago" value="2" > 1.
Payment: Transfer</td>
<input type="radio" checked name="btn_tipo_pago" value="3" > 1.
Payment: Creditcard</td>
3.- Script to Identify wich button was selected as soon as the continue
button is pressed:
<SCRIPT FOR="continue" EVENT="onclick" LANGUAGE="VBScript">
Dim oElement, oElements, oRadio
Dim sValue
set oElements = Document.frmdir.Elements
for each oElement in oElements
if oElement.Type= "radio" and oElement.Checked = True then
set oRadio = oElement
Exit for
End if
next
sValue = oRadio.value
4.- My questions are:
1.- From point (3) how may assign the sValue to my session variable
"Payment Method"
2.- How may I obtain and display through an alert the contents of
another session variable.
Thanks for your cooperation....
I have a session variable wich value arrives from a previous .asp but
in my actual page I need to modify it based upon a selected value from
a radio button.
I will try to figure out for better understanding:
page1.asp ---> session("PaymentMethod")
page2.asp ---> Depending on the radio button selected the payment
method could be (check, transfer, creditcard) and this value must be
assigned to "PaymentMethod" session variable for further processing.
1.- In my form I created the hidden value:
<input type="Hidden" name="PaymentMethod" value="" id="PaymentMethod"
/>
2.- Radio buttons at the form
<input type="radio" checked name="btn_tipo_pago" value="1" > 1.
Payment: Check</td>
<input type="radio" checked name="btn_tipo_pago" value="2" > 1.
Payment: Transfer</td>
<input type="radio" checked name="btn_tipo_pago" value="3" > 1.
Payment: Creditcard</td>
3.- Script to Identify wich button was selected as soon as the continue
button is pressed:
<SCRIPT FOR="continue" EVENT="onclick" LANGUAGE="VBScript">
Dim oElement, oElements, oRadio
Dim sValue
set oElements = Document.frmdir.Elements
for each oElement in oElements
if oElement.Type= "radio" and oElement.Checked = True then
set oRadio = oElement
Exit for
End if
next
sValue = oRadio.value
4.- My questions are:
1.- From point (3) how may assign the sValue to my session variable
"Payment Method"
2.- How may I obtain and display through an alert the contents of
another session variable.
Thanks for your cooperation....