[UPHPU] Javascript and Square braces

Matthew Frederico mfrederico at gmail.com
Fri Feb 3 14:21:12 MST 2006

So .. I have a form called "Cart"

I also have form elements with "quantity[$item_id]" as their name: <input
type="text" name="quantity[2]">

I would like to modify this element via javascript.  I know I should
probably just rename it to quantity_2 and parse the vars .. but this square
braces method of variable passing keeps coming up a lot.

Am I clear as mud on this?

Best Regards,

-- Matthew Frederico
Cell: (518)365-9841
Office: (361)288-3331

More information about the UPHPU mailing list