Jump to content

Archived

This topic is now archived and is closed to further replies.

pisean282311

how to get values of form object having same name

Recommended Posts

hi!!

well suppose i hv text box by name of quantity which is iterated 10 times using an array.
<?php

for($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.

Share this post


Link to post
Share on other sites
You need to either name those text boxes differently or use an array (ie. "quantity[]") for the name of the textboxes.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.