Jump to content


how to get values of form object having same name

  • Please log in to reply
1 reply to this topic

#1 pisean282311

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 06 June 2006 - 01:13 PM


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

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.

#2 ober

  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 06 June 2006 - 01:23 PM

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

Info: PHP Manual

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users