That is what you should be getting right?
When you have a select statement that has a value as the first one then
that is what you will get when you post or get the form.
if you want a blank one then do
and that should not pass anything in the post or get...
On Mon, 2002-11-18 at 17:30, Dave J. Hala Jr. wrote:
> I'm running php-4.2.2-8.0.5 on Redhat 8.0
> Lately I've noticed that when doing a form, listbox variables have funky
> values in certain situations. Unfortunately, I haven't been to
> determined what the certain situation is.
> Here's an example.
> Here is the listbox in the form:
> <select NAME=SQN>
> <option VALUE="4">4</option>
> <option VALUE="6">6</option>
> <option VALUE=""></option>
> After clicking submit, when I echo the variable in the post script,I get
> the following results:
> I should get the value "4"
> Doing an echo "$_POST[SQN] <BR>"; yields the same results.
> I didn't start seeing this until this week. I don't know what changed,
> but it only happens with certain variables on certain posts. Anyone
> else seen this type of behavior?
> :) Dave
> "...Unix, MS-DOS and Windows NT (also known as the Good, the Bad, and
> the Ugly)"
> Dave J. Hala Jr.
.: B i g D o g :.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php