justravis Posted July 2, 2007 Share Posted July 2, 2007 If i named checkboxes "check[]", is there a way to quickly get the value of check[1]? I tried $_POST[check[1]] & it didnt work. THANK YOU! Link to comment https://forums.phpfreaks.com/topic/58144-foreach-required-for-_post-array/ Share on other sites More sharing options...
john010117 Posted July 2, 2007 Share Posted July 2, 2007 Try $_POST['check']['1'] or maybe $_POST['check'][1] Link to comment https://forums.phpfreaks.com/topic/58144-foreach-required-for-_post-array/#findComment-288369 Share on other sites More sharing options...
justravis Posted July 2, 2007 Author Share Posted July 2, 2007 THATS AWESOME!!! It worked! I couldn't even find multi-dimensional $_POST or superglobal arrays mentioned in the manual. Link to comment https://forums.phpfreaks.com/topic/58144-foreach-required-for-_post-array/#findComment-288384 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.