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

Simple radio button query..

Status
Not open for further replies.

meeble3

Programmer
Nov 8, 2004
52
GB
When I pass a radio button value through if it's selected it says 'on'.

On the next page, how do I change the on to a yes?

Something like if $value ==" on" then $value =="yes", I thought but this doesn't work.

Any ideas, thanks...
 
You can set a value to a radiobutton in your HTML and make it return whatever you want.

But it's always seemed more important in my code to know which button was chosen, not what value was returned.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top