calling parent form? (not sure if thats right)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kyoru
Forum Commoner
Posts: 26
Joined: Mon Feb 13, 2006 9:35 pm

calling parent form? (not sure if thats right)

Post 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?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Give each form a hidden variable...

Code: Select all

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