QuickForm elements not displaying
| From: | Iain Pople | Date: | Thu, 03 Apr 2003 06:54:34 +0000 |
| Subject: | QuickForm elements not displaying | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-4607@lists.php.net to get a copy of this message | ||
Hi,
I have been having some problems with some Quickform elements not displaying. Specifically in the following code, the date and imageFile components do not appear. I have found that changing the order of the elements can affect whether they appear or not.
QuickForm 2.10
Pear 1.0
PHP - 4.1.2
Apache 1.3.26
Has anyone else experienced this? Any suggestions?
cheers, Iain.
$newsForm = new HTML_QuickForm('newsForm','POST','new.php');
// Add Elements
$newsForm->addHeader('1. Title Information:');
$newsForm->addElement('text','title','Title:','size = 32');
$newsForm->addElement('select','publicationType','Publication Type:',$pubTypes);
$newsForm->addElement('select','topic','Topic:',$topics,'multiple = true');
$newsForm->addElement('date','dateStamp','Date:');
$newsForm->addHeader('2. Document:');
$newsForm->addElement('text','byline','Introduction Text:','size = 60');
$newsForm->addElement('file','imageFile','Image:');
$newsForm->addElement('textarea','document','Document:','cols = 65, rows = 22');
$newsForm->addElement('text','caption','Caption:','size = 60');
$newsForm->addHeader('3. Contact Information:');
$newsForm->addElement('text','email','Contact Information:','size = 32');
$newsForm->addElement('textarea','contact','Contact:','cols = 45, rows = 6');
$newsForm->addElement('submit','submit','Submit');
// Add validation Rules
$newsForm->display();