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
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
No, he's saying that:
echo $sqn;
displays SQN=4.
it should say simply 4
- Original Message -
From: BigDog [EMAIL PROTECTED]
To: Dave J. Hala Jr. [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, November 18, 2002 4:33 AM
Subject: Re: [PHP] Post Problem
That is what you should
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
What does the entire form look like?
On Mon, 2002-11-18 at 17:43, Dave J. Hala Jr. wrote:
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?
SQN: 4SQN=4 brSQN: 4SQN=4br
html
head
title Nifcap - Export Checks/title
table WIDTH=100%
tr
td WIDTH=5% bgcolor=#CCfont face= arial size =3
Export Checks/font/td
/tr
/table
br
body bgcolor=f0 text=00
but where is the form that you created...
That was i can see what you have set up inside of the form tag...
On Mon, 2002-11-18 at 17:51, Dave J. Hala Jr. wrote:
SQN: 4SQN=4 brSQN: 4SQN=4br
html
head
title Nifcap - Export Checks/title
table WIDTH=100%
tr
td
-Original Message-
From: Dave J. Hala Jr. [mailto:[EMAIL PROTECTED]]
Sent: 18 November 2002 17:30
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
I think you should comment on this bug:
http://bugs.php.net/bug.php?id=18648
provide the details about your system configurations and everything else
that might help us to fix it. Though, it seems to be an Apache2 problem,
so try upgrading that as well.
--
Maxim Maletsky
[EMAIL PROTECTED]
I'd be willing to post the entire page, but it's 154 lines of embedded
php. Here's the FORM block portion of the page. The $sqn_list_box
variable contains the listbox.
$export_form .=FONT face= \$font_type\ size =\$font_size\FORM
METHOD=\post\ ACTION=\/payment/export_checks.php\
Hi everybody,
i'm a newie in php, but i have a general understanding
of it.
Recently, i've installed PHP as a static module on my
Apache-1.3.19 and tried an example i read in PHP
tutorial.
Assume you have a page with a form like this on it:
form action=action.php method=post
Your name: input
Hi ?php echo $name; ?.
You are ?php echo $age; ? years old.
This action.php is supposed to print out values one
enters to the form fields. Right?
So, my problem is that it doesn't. Instead, it prints
Hi.You are years old.
Try:
?php echo($variable);?
Have fun,
B.
--
PHP General Mailing
--- Steve Edberg [EMAIL PROTECTED] wrote:
My guess is that your register_globals config option
is off:
Your are quite right it is off. Right at the bebinning
of php.ini it says so. Blame on me i missed it.
You should be able to access the values you want via
$HTTP_POST_VARS['name']
and
13 matches
Mail list logo