Re: [PHP] Quickform - edit form

2005-03-09 Thread Leonie \(phpgroup\)
Richard Lynch wrote: I always go for the "one form" system, because otherwise you have double the work to do (opening two files) every little change, and invariably one of the forms drifts out of sync when (not if, when) you forget to change the other form and... Thanks, Robert. I think this is th

Re: [PHP] Quickform - edit form

2005-03-09 Thread Leonie \(phpgroup\)
DID YOU TRY THIS?? echo "\n"; ?> Look! I just assigned data to the form! Chris. I'm using Pear Quickform (hence my subject title) with Smarty. The value needs to be assigned to the Quickform object somehow. Creating the field with: $form->addElement('text', 'year', 'Year:'); How do I add the

Re: [PHP] Quickform - edit form

2005-03-09 Thread Marek Kilimajer
Leonie (phpgroup) wrote: I've set up a form using Quickform. I've got it working a dream. My problem is at the moment it only adds records to the database. I would like to also have an edit form. I don't know what is easiest. Amend the existing form so it enters data and edits it, or have two di

Re: [PHP] Quickform - edit form

2005-03-09 Thread Richard Lynch
> I've set up a form using Quickform. I've got it working a dream. My > problem is at the moment it only adds records to the database. I would > like to also have an edit form. I don't know what is easiest. Amend the > existing form so it enters data and edits it, or have two different > webpages.

RE: [PHP] Quickform - edit form

2005-03-09 Thread Chris W. Parker
Leonie (phpgroup) on Wednesday, March 09, 2005 1:13 PM said: > I've set up a form using Quickform. I've got it working a dream. My > problem is at the moment it only adds records to the database. I would > like to also have an edit form. I don't know what is easiest.