Re: QF Select statement question

From: Date: Thu, 23 Sep 2004 23:51:12 +0000
Subject: Re: QF Select statement question
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14627@lists.php.net to get a copy of this message
Doug, I just started playing with HTML_QuickForm myself so my advice may not be that good but I believe that if you want to control the output of columns in your table you should take a look at the example in the documentation in your local pear installation. /pear/docs/HTML_QuickForm/docs/renderers/QuickHtml_example.php It produces a table with the colspan attribute applied. On Sep 23, 2004, at 5:18 PM, Doug Dalton wrote:
|<?php $attr=Array("colspan"=>2); $form->addElement <http://www.php.net/manual-lookup.php?lang=en&pattern=addElement>('select', 'mAnonymous', 'Make this an Anonymous request?:&nbsp;&nbsp;', $yesno, $attr); ?> outputs : <tr> <td align="right" valign="top"><b>Make this an Anonymous request?:&nbsp;&nbsp;</b></td> <td valign="top" align="left"><select colspan="2" name="mAnonymous"> <option value="0" selected="selected">No</option> <option value="1">Yes</option> </select></td> </tr> instead of <tr> <td align="right" valign="top"><b>Make this an Anonymous request?:&nbsp;&nbsp;</b></td> <td valign="top" align="left" colspan=2>
        <select name="mAnonymous">
     <option value="0" selected="selected">No</option>
     <option value="1">Yes</option>
        </select></td>
</tr> How do I correctly generate the later statement? Regards, Doug | --PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.pear.general (#14627) next »