setDefaults question

From: Date: Mon, 28 Jul 2003 12:23:15 +0000
Subject: setDefaults question
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6864@lists.php.net to get a copy of this message
In the following example, I have a text field named "slug" that displays the default value "blah" as it should, but field "93" does not. $this->defaultFormValues['slug'] = 'blah'; $this->defaultFormValues['93'] = '129'; Field "93" is a select of the dropdown variety, the acutal source output from QF follows: <select name="93"> <option value="126">One</option> <option value="127">Two</option> <option value="128">Three</option> <option value="129">Four</option> </select> So let's say I want "Four" to be the default value here. I have tried just about everything rational and some goofy stuff but the default value is always 126/One. $this->defaultFormValues['93'] = '129'; $this->defaultFormValues['93'] = 129; $this->defaultFormValues[93] = '129'; $this->defaultFormValues[93] = 129; I'd imagine it's something simple I'm missing, but I have gone in circles for a couple hours now. Thanks in advance. -CJ

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