Hello, I have got the following array string through URL.
http://www.xmeniafitnessclub.com/1024768/enquiry.php?fname=hgg&sex=female&facility=weightloss&facility=weightgain&facility=yoga&facility=danceclass&phone=363636&email=anuradha.jo1shi%40cognizant.com&feedback=%0D%0Ayuy&submit=Submit
I need to seprate out following values.. I am trying this array but with no luck..
# **&facility=weightloss&facility=weightgain&facility=yoga&facility=danceclass** #
HTML code for same is -
<tr>
<td><label>Facility *:</label> </td>
<td>
<input type="checkbox" name="facility" value="gym"/> Gym<br />
<input type="checkbox" name="facility" value="cardio" /> Cardio <br />
<input type="checkbox" name="facility" value="gymcardio" /> Gym+Cardio <br />
<input type="checkbox" name="facility" value="weightloss" /> Weight Loss <br />
<input type="checkbox" name="facility" value="weightgain" />Weight Gain
</td>
<td>
<input type="checkbox" name="facility" value="aerobics" /> Aerobics <br />
<input type="checkbox" name="facility" value="yoga" /> Yoga <br />
<input type="checkbox" name="facility" value="danceclass" /> Dance Class <br />
<input type="checkbox" name="facility" value="kickboxing" /> Kick Boxing <br />
<input type="checkbox" name="facility" value="guitar" /> Guitar
</td>
</tr>
I have tried this using ...
**$fac = explode("=", urldecode($_GET['facility']));**
Can anybody please help me out?
Thanks in advance.