Re: Post Problem
| From: | Rick Emery | Date: | Mon, 18 Nov 2002 17:42:16 +0000 |
| Subject: | Re: Post Problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124947@lists.php.net to get a copy of this message | ||
No, he's saying that:
echo $sqn;
displays SQN=4.
it should say simply 4
----- Original Message -----
From: "BigDog" <bigdog@venticon.com>
To: "Dave J. Hala Jr." <dave@58ghz.net>
Cc: <php-general@lists.php.net>
Sent: Monday, November 18, 2002 4:33 AM
Subject: Re: [PHP] Post Problem
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