Jump to content

[SOLVED] Radio buttons value - MySQL


dont_be_hasty

Recommended Posts

Ok, so my webpage has 4 radio button they are:

 

<input type="radio" name="id" value="???" checked> All
<input type="radio" name="id" value="1"> 1
<input type="radio" name="id" value="2"> 2
<input type="radio" name="id" value="3"> 3

 

I then have a mysql query where i use the value selected from the radio box. But i need to know what value to i need put in the 'All' radio button (where the ? ? ? are) so that it can return results of any id (not just 1 or just 2, but can return 1, 2 and 3 altogether)

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/145802-solved-radio-buttons-value-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.