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. 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. 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
Archived
This topic is now archived and is closed to further replies.