Re: Pear QuickForm date element causing problems

From: Date: Wed, 11 Aug 2004 21:37:59 +0000
Subject: Re: Pear QuickForm date element causing problems
References: 1 2 3 4 5 6 7 8  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14071@lists.php.net to get a copy of this message
[snip]
It could also be 3) a local copy of QuickForm is being used. Are you sure there's no HTML/QuickForm.php in your current dir or in your include_path? Have I asked this before? You can set the defaults with setDefaults() as I have said before. Did you have your provider update HTML_Common as well? It could also be the culprit possibly. What does the HTML source for one of the select boxes look like? Could you post it?
Here's the HTML source for one of the date select boxes. Looks normal, except that the empty value is at the very end. <select name="mydate[d]"> <option value="1">01</option> <option value="2">02</option> <option value="3">03</option> <option value="4">04</option> <option value="5">05</option> <option value="6">06</option> <option value="7">07</option> <option value="8">08</option> <option value="9">09</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> <option value="">&nbsp;</option> </select> As far as I can see I'm not using a local copy of QuickForm. (I tried it with Bertrands example and my includes look just like this) My provider probably didn't update HTML_Common but I'll look into that. Let me ask a stupid question: How do I use setDefaults() for a date element (since it consists of multiple select boxes). That would probably the easiest way to fix the whole thing. Just set the defaults manually, using setDefaults(). thanks a lot! Sam

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