Re: Post Problem
| From: | Dave J. Hala Jr. | Date: | Mon, 18 Nov 2002 17:43:29 +0000 |
| Subject: | Re: Post Problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124948@lists.php.net to get a copy of this message | ||
I selected the option that would have the value "4", what I get is
"4SQN=4" I should get just the value "4"
On Mon, 2002-11-18 at 04:33, BigDog wrote:
> 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
> <option></option>
>
> 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>
> > </select>
> >
> > After clicking submit, when I echo the variable in the post script,I get
> > the following results:
> > SQN=4
> >
> > 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)"
> >
> > OSIS
> > Dave J. Hala Jr.
> > 641.485.1606
> --
> .: B i g D o g :.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
"...Unix, MS-DOS and Windows NT (also known as the Good, the Bad, and
the Ugly)"
OSIS
Dave J. Hala Jr.
641.485.1606