pixeltrace Posted July 19, 2007 Share Posted July 19, 2007 hi, i need help, currently i have a code and it only submit results in array if(isset($_GET['poitype']) and count($_GET['poitype']) > 0) $poitype = implode(",", $_GET['poitype']); else $poitype = ''; how do i modify this code so that i can also submit a non-array value? because i submit this same variable on two different function 1 . using checkboxes, the name of my checkbox is poitype[] 2. using list menu, the name of my list menu is poitype hope you could help me fix this. thanks! Quote Link to comment https://forums.phpfreaks.com/topic/60716-need-help-in-submitting-array-and-non-array-result/ Share on other sites More sharing options...
teng84 Posted July 19, 2007 Share Posted July 19, 2007 if(isset($_GET['poitype'])) simply use that is that what you mean Quote Link to comment https://forums.phpfreaks.com/topic/60716-need-help-in-submitting-array-and-non-array-result/#findComment-302034 Share on other sites More sharing options...
pixeltrace Posted July 19, 2007 Author Share Posted July 19, 2007 i mean it can submit either an array or a non-array result is it possible? thanks! Quote Link to comment https://forums.phpfreaks.com/topic/60716-need-help-in-submitting-array-and-non-array-result/#findComment-302044 Share on other sites More sharing options...
DeadEvil Posted July 19, 2007 Share Posted July 19, 2007 No it can't.. it must be an array. Implode — Join array elements with a string Quote Link to comment https://forums.phpfreaks.com/topic/60716-need-help-in-submitting-array-and-non-array-result/#findComment-302139 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.