[PHP] Re: How to process a query form with CHECKBOX Please help

2004-12-27 Thread Jonathan
Shouldn't you use "radio" rather than checkbox for age group? the 2 responses is good if you want them to be able to select more than one. "S Kumar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear group, > I am a novice programmer started doing php to process > a query form of

[PHP] Re: How to process a query form with CHECKBOX Please help

2004-12-27 Thread Ospinto
Young Middle Old note that the name of all three is "agegroup[]". this ensures that it stores the values in an array "$agegroup". now on the next page, you can simply say $ageresult=implode(" and ",$agegroup); now, your query is simply: Select age_group from patient_data where age_group = $ageres