PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Edit Page

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTML
View previous topic :: View next topic  
Author Message
SanderK



Joined: 01 Jul 2008
Posts: 13

PostPosted: Thu Jul 03, 2008 7:29 am    Post subject: Edit Page Reply with quote

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
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1053

PostPosted: Fri Jul 04, 2008 2:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTML All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software