| View previous topic :: View next topic |
| Author |
Message |
SanderK
Joined: 01 Jul 2008 Posts: 13
|
Posted: Thu Jul 03, 2008 7:29 am Post subject: Edit Page |
|
|
Hi Guys
I'm not sure how to do that task best. I created a form with Quickform to enter data which works great but now I need to create a form to edit the existing data. So do I need to add a hidden field for the id and load the existing data into "setDefaults"?
Do you know a page with more sample code than in pear.php.net?
Thanks for your help. |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
Posted: Fri Jul 04, 2008 2:11 pm Post subject: |
|
|
A quite extensive tutorial about QF can be found here:
http://www.midnighthax.com/quickform.php
Hidden fields are also covered there. The value for hidden fields can either be specified in the addElement() call (third parameter) or as with every other element type via $form->setDefaults() (array with element name as the key, element value as the value). |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|