btoles Posted July 27, 2009 Share Posted July 27, 2009 So, print_r($_POST, true) outputs. Array ( [price] => Array ( [3] => 1 ) [remove] => Array ( [3] => 0 ) [submit] => Submit ) All the information is being sent, however... echo $_POST['price[3]']); Outputs nothing... Link to comment https://forums.phpfreaks.com/topic/167588-solved-_post-vars-not-outputting/ Share on other sites More sharing options...
Zyx Posted July 27, 2009 Share Posted July 27, 2009 Because there is no such element like "price[3]" in the array. Take a look, have you got any "price[3]" in the print_r output? I see only "price". PHP converts such items to arrays, so the correct code is: echo $_POST['price'][3]; Link to comment https://forums.phpfreaks.com/topic/167588-solved-_post-vars-not-outputting/#findComment-883753 Share on other sites More sharing options...
btoles Posted July 27, 2009 Author Share Posted July 27, 2009 Thanks much Zyx, that's been driving me nuts... Link to comment https://forums.phpfreaks.com/topic/167588-solved-_post-vars-not-outputting/#findComment-883754 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.