pisean282311 Posted June 6, 2006 Share Posted June 6, 2006 hi!!well suppose i hv text box by name of quantity which is iterated 10 times using an array.<?phpfor($i=0;$i<10;$i++){print("<input type=\"text\" name=\"quantity\" ");}?>now this text will have ten differnet values.how would i be able to get these values.in jsp there is method by name of getParameterValues("") which returns array.do we have something similar in php? kindly help. Quote Link to comment https://forums.phpfreaks.com/topic/11324-how-to-get-values-of-form-object-having-same-name/ Share on other sites More sharing options...
ober Posted June 6, 2006 Share Posted June 6, 2006 You need to either name those text boxes differently or use an array (ie. "quantity[]") for the name of the textboxes. Quote Link to comment https://forums.phpfreaks.com/topic/11324-how-to-get-values-of-form-object-having-same-name/#findComment-42398 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.