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

Setting a variable from a Select Box

Status
Not open for further replies.

khurram

IS-IT--Management
Jan 10, 2001
95
CA
I have the folling Drop-down box:

<SELECT name=&quot;SelectPaymentOption&quot;>
<OPTION value=1>Visa</OPTION>
</SELECT>

I can set a variable with the word 'VISA' rather than than the value?

Thanks.
 
Yeah khurram this will do it.

<SELECT name=&quot;SelectPaymentOption&quot;>
<OPTION value=&quot;Visa&quot;>Visa</OPTION>
</SELECT>

SelectPaymentOption will equal &quot;Visa&quot;

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top