Page 1 of 1

calling parent form? (not sure if thats right)

Posted: Fri Feb 17, 2006 9:03 pm
by kyoru
Currently i'm writing a shopping cart for my site, at the 'view cart" page where it lists all the items i have to option to remove the item or up date its' quantities. Each item has its own form "eg. car1" but each button is named "remove", "update". I know how to detect if a button is pushed but is there a way to call the originating form?

Posted: Fri Feb 17, 2006 9:15 pm
by Benjamin
Give each form a hidden variable...

Code: Select all

<input type="hidden" name="formnumber" value="blah" />