Question
2 submit buttons on 1 form
I'm working from the excellent "PHP web development with
Dreamweaver MX 2004" book but am struggling to adapt part of the
case study.
The book says that it is possible to list the current members of a fictitious club in the order of their membership category. ie. most important position first!
It suggests adding a field to the category table which will contain a number relating to its importance. (I've used a varchar type! named "display_order")
The book then reminds the reader to amend the admin pages to reflect the changes.
The admin page currently contains 2 forms. The 1st form adds new categories. The 2nd form displays all of the categories (sorted according to display_order) with a radio button to select categories to delete.
To this form I have added the display_order which needs to be editable so I can alter the display_order. (I've included a hiddenfield of the category_ID on the table row before the "repeat region"! Is this right?)
Is it possible to have 2 sumit buttons on 1 form? 1 button to delete records and 1 to update records!
Thanks for your help!
The book says that it is possible to list the current members of a fictitious club in the order of their membership category. ie. most important position first!
It suggests adding a field to the category table which will contain a number relating to its importance. (I've used a varchar type! named "display_order")
The book then reminds the reader to amend the admin pages to reflect the changes.
The admin page currently contains 2 forms. The 1st form adds new categories. The 2nd form displays all of the categories (sorted according to display_order) with a radio button to select categories to delete.
To this form I have added the display_order which needs to be editable so I can alter the display_order. (I've included a hiddenfield of the category_ID on the table row before the "repeat region"! Is this right?)
Is it possible to have 2 sumit buttons on 1 form? 1 button to delete records and 1 to update records!
Thanks for your help!
