[PHP] Quickform Date element time range.

2006-01-24 Thread Gary Smith
Aloha All, I was wondering how I could set a time range using the date element. What I need is a way to limit the time fields to reflect the times available. So if the range is 7 am to 4 pm I would like the hours menu to only contain 7,8,9,10,11,12,1,2,3,4. Any time selected before 12 would be am

Re: [PHP] quickForm

2005-07-10 Thread Richard Lynch
On Sat, July 9, 2005 7:46 pm, Will said: > Hi, can someone say where I might post this. > Hi, I am using a quickform form and it works well except when I use it by > using an include in another file. In that case when the file is called in > (by way of the include statement in the parent file) it

[PHP] quickForm

2005-07-09 Thread Will
Hi, can someone say where I might post this. Hi, I am using a quickform form and it works well except when I use it by using an include in another file. In that case when the file is called in (by way of the include statement in the parent file) it seems that the quickform gets processed as tho

[PHP] QuickForm->process()

2005-03-15 Thread Esad Hajdarevic
Hi everyone, Shouldn't void HTML_QuickForm::process (mixed $callback [, bool $mergeFiles = TRUE]) actually return the value returned by the callback function? One example when this may be handy: if ($form->process(array(&$fb,'processForm'), false)) { //data processed (FormBuilder's processForm

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.

[PHP] Quickform - edit form

2005-03-09 Thread Leonie \(phpgroup\)
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. Also

[PHP] Quickform select element...

2003-12-17 Thread Bobber
I'm trying to get familiar with quickform in the Pear HTML module. I have a form with a select box created like this: $form->addElement('select', 'nickname', 'Is this a nickname?', array(1 => 'Yes', 0 => 'No') ); Now, how do I tell the select box to use the default value of 'No'? -- PHP Gener

Re: [PHP] Quickform Image validation

2003-11-03 Thread Ian P. Christian
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 03 November 2003 6:54 pm, Pablo Goose wrote: > Hi Ian. If you're trying to access an uploaded file then you have to > use the $_FILES array. > > How is that you had hoped to access this information from outside the > $_FILES array? It seems

[PHP] Quickform Image validation

2003-11-03 Thread Ian P. Christian
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm using the following class for a form with an image in, but I need to use a function to validate that an image was uploaded with the correct type and that it's not too large. I don't seem to be able to access the information about the file from wit