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... Quote Link to comment 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]; Quote Link to comment 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... Quote Link to comment 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.