emtor Posted May 30, 2007 Share Posted May 30, 2007 I have a html form with checkboxes where the user can make multiple choices, but the problem is that the array that holds the chosen values only "remembers" the last chosen value. I would like the $_POST[value] to hold the values of all the choices made,-not only the last one. -Is there any way of doing this? Quote Link to comment https://forums.phpfreaks.com/topic/53514-php-array-html-checkboks/ Share on other sites More sharing options...
gabeg Posted May 30, 2007 Share Posted May 30, 2007 <form method=post> <input type=checkbox name=blah[]>1 <input type=checkbox name=blah[]>2 </form> and on the php page <?php print_r($_POST); ?> you should be able to handle it from there Quote Link to comment https://forums.phpfreaks.com/topic/53514-php-array-html-checkboks/#findComment-264470 Share on other sites More sharing options...
emtor Posted May 30, 2007 Author Share Posted May 30, 2007 thanks Quote Link to comment https://forums.phpfreaks.com/topic/53514-php-array-html-checkboks/#findComment-264483 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.