this might be a noob- question, but I simply do not care anymore. After
a few hours of fiddling with this @/**%$ (screaming AAa), I
would like to ask you.
So what I have is this: I have a search engine for a car market, which
has about 30 $_POST- vars. Now when the user clicks on a
I'm using PHP 5.2 and $_POST works just fine.
On 7/17/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Tue, 2007-07-17 at 14:20 +1000, Nathan Wallis wrote:
Hey,
Just wondering if anyone can help me out. I have been used to using
$_POST
but from what I can tell it isn't supported in PHP 5.
On 7/17/07, Robert Cummings [EMAIL PROTECTED] wrote:
On Tue, 2007-07-17 at 14:20 +1000, Nathan Wallis wrote:
Hey,
Just wondering if anyone can help me out. I have been used to using $_POST
but from what I can tell it isn't supported in PHP 5. What do you use
instead?
Could you point us
On Tue, 2007-07-17 at 14:20 +1000, Nathan Wallis wrote:
Hey,
Just wondering if anyone can help me out. I have been used to using $_POST
but from what I can tell it isn't supported in PHP 5. What do you use
instead?
Could you point us to the literature that says it's not supported in
PHP5
Another option would be to use an associative array:
input type=text name=domain_object_vars[FirstName] value=/
.
.
.
.
input type=text name=domain_object_vars[Zip] value=
This way the 'submit' button wouldn't even show up as a key in the
array, which is accessible to PHP through the
-Original Message-
From: Tim [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 14, 2007 12:58 PM
To: 'PHP'
Subject: [PHP] $_POST array order
Hi,
Quick question regarding $_POST array element order, first the situation:
I am submitting a form with x first fields and the post
On 3/14/07, Tim [EMAIL PROTECTED] wrote:
Hi,
Quick question regarding $_POST array element order, first the situation:
I am submitting a form with x first fields and the post value returns the
last element as being the submit button name and value
Is it safe to consider that the last element
On Wed, March 14, 2007 11:58 am, Tim wrote:
Quick question regarding $_POST array element order, first the
situation:
I am submitting a form with x first fields and the post value returns
the
last element as being the submit button name and value
Is it safe to consider that the last
On Wed, March 14, 2007 12:28 pm, Brad Fuller wrote:
You could also omit the name parameter of the submit button and it
will
not even be passed at all.
input type=submit value= Submit Form
I dunno about these new-fangled browsers, but in the old ones, you'd
get Submit as the name if the user
On Wed, 2007-03-14 at 17:23 -0500, Richard Lynch wrote:
On Wed, March 14, 2007 12:28 pm, Brad Fuller wrote:
You could also omit the name parameter of the submit button and it
will
not even be passed at all.
input type=submit value= Submit Form
I dunno about these new-fangled
Why are you passing the POST array? As it's superglobal why not just work
directly on it within the function?
Dan
-
Dan Parry
Senior Developer
Virtua Webtech Ltd
http://www.virtuawebtech.co.uk
-Original Message-
From: Jason Gerfen
Dan Parry wrote:
Why are you passing the POST array? As it's superglobal why not just work
directly on it within the function?
Dan
-
Dan Parry
Senior Developer
Virtua Webtech Ltd
http://www.virtuawebtech.co.uk
-Original Message-
Why are you passing the POST array? As it's superglobal why
not just work directly on it within the function?
Passing it has distinct advantages, like being able to test the function.
Jared
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Is the function actually returning anything? Aren't you just echoing the
content of the $_POST?
-Original Message-
From: Jason Gerfen [mailto:[EMAIL PROTECTED]
Sent: Friday, February 24, 2006 10:27 PM
To: PHP General (E-mail)
Subject: [PHP] $_POST to function?
I am not sure why this is
Do:
function global_template( $cmd, $args, $num, $message ) {
ob_start();
echo pre; print_r( $args ); echo /pre;
ob_end_flush();
return ob_get_contents();
}
-Original Message-
From: Jason Gerfen [mailto:[EMAIL PROTECTED]
Sent: Friday, February 24, 2006 10:27 PM
To: PHP General
Peter Lauri wrote:
Is the function actually returning anything? Aren't you just echoing the
content of the $_POST?
-Original Message-
From: Jason Gerfen [mailto:[EMAIL PROTECTED]
Sent: Friday, February 24, 2006 10:27 PM
To: PHP General (E-mail)
Subject: [PHP] $_POST to function?
I
Peter Lauri wrote:
http://th.php.net/manual/en/function.return.php
-Original Message-
From: Jason Gerfen [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 25, 2006 12:29 AM
To: Peter Lauri
Cc: php-general@lists.php.net
Subject: Re: [PHP] $_POST to function?
Peter Lauri wrote
Erfan Shirazi wrote:
I want to get all data passed on to a certain page, I use this to make
it happen:
foreach($_POST as $key = $tempvalue)
{
$cVariable .= $key.=.$tempvalue.;
}
Try:
?
function getValues($arrayWithValues, $pre='') {
$tmpVal = '';
foreach($arrayWithValues as
On 12/1/05, Erfan Shirazi [EMAIL PROTECTED] wrote:
foreach($_POST as $key = $tempvalue)
{
$cVariable .= $key.=.$tempvalue.;
}
Is there anyway I can get the values chosen instead of just Array?
check for that first using is_array() and then loop through it
appending it to the string
Could you let me know your OS and Webserver program.
Did you use appserv for begin learn php?
- Original Message -
From: Fil [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Thursday, December 01, 2005 11:58 AM
Subject: [PHP] $_POST won't work for me
Ladies and Gentlemen,
[EMAIL PROTECTED] (Richard Lynch) wrote in
news:[EMAIL PROTECTED]:
overbored wrote:
Hi all, I'm learning PHP and I'd need to create a simple Web-based
ifconfig
tool for a Soekris box (running Pebble). However, I've been
unsuccessful at
getting PHP working with mini_httpd. In particular,
$ php --version
PHP 4.3.10-2 (cli) (built: Dec 19 2004 03:41:45)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
[EMAIL PROTECTED] (Burhan Khalid) wrote in
news:[EMAIL PROTECTED]:
overbored wrote:
Hi all, I'm learning PHP and I'd need to
overbored wrote:
Hi all, I'm learning PHP and I'd need to create a simple Web-based
ifconfig tool for a Soekris box (running Pebble). However, I've been
unsuccessful at getting PHP working with mini_httpd. In particular,
the POST data is not being received. Here's what I did...
What version of
overbored wrote:
Hi all, I'm learning PHP and I'd need to create a simple Web-based
ifconfig
tool for a Soekris box (running Pebble). However, I've been unsuccessful
at
getting PHP working with mini_httpd. In particular, the POST data is not
being received. Here's what I did...
First, I
[EMAIL PROTECTED] (Burhan Khalid) wrote in news:422474F6.4020708
@meidomus.com:
overbored wrote:
Hi all, I'm learning PHP and I'd need to create a simple Web-based
ifconfig tool for a Soekris box (running Pebble). However, I've been
unsuccessful at getting PHP working with mini_httpd. In
overbored wrote:
Hi all, I'm learning PHP and I'd need to create a simple Web-based ifconfig
tool for a Soekris box (running Pebble). However, I've been unsuccessful at
getting PHP working with mini_httpd. In particular, the POST data is not
being received. Here's what I did...
What version of
Bennie Foreman wrote:
Hi,
I am new to the PHP world so don't give me too much grief if this has a
simple solution. My problem is that the $_POST array is not being
populated. I have created a form and the method of that form is POST.
I
have started the session using session_start() but
if(isset($fp['name'],$fp['pass'],$fp['blah']))
Wow!
Has isset() always allowed multiple inputs?...
When I think of all the times I've typed isset() isset() isset() !!!
Jeez, learn something every day.
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailing List
Andrew Maxwell wrote:
When you submit something, and you want to make sure that the user
inputs all of the info, is there an easier way to do it than this:
One method I've done that is to create an array with the required field
names, then loop it through and check whether they all have a value.
Thats exactly what i need. Thanks a ton.
~Andrew
On Mon, 17 Jan 2005 10:58:07 +0200, Ville Mattila [EMAIL PROTECTED] wrote:
Andrew Maxwell wrote:
When you submit something, and you want to make sure that the user
inputs all of the info, is there an easier way to do it than this:
One
Andrew Maxwell wrote:
When you submit something, and you want to make sure that the user
inputs all of the info, is there an easier way to do it than this:
if ((!$_POST[name]) || !$_POST[pass]) || (!$_POST[blah]))
{
etc.
}
is there an easy way to check if all of the varibles have data in them?
[snip]
I am new to the PHP world so don't give me too much grief if this has a
simple solution. My problem is that the $_POST array is not being
populated. I have created a form and the method of that form is POST.
I
have started the session using session_start() but still nothing. When
I
Jay Blanchard wrote:
[snip]
I am new to the PHP world so don't give me too much grief if this has a
simple solution. My problem is that the $_POST array is not being
populated. I have created a form and the method of that form is POST.
I
have started the session using session_start() but
Maybe a daft question but why would you like to check for a
specific value?
Can you give an example when this is a good thing to do?
You might have two submit buttons, where you want to take a different
action depending upon which one the user clicks.
Chris
=
Chris Shiflett -
Chris Shiflett wrote:
Maybe a daft question but why would you like to check for a
specific value?
Can you give an example when this is a good thing to do?
You might have two submit buttons, where you want to take a different
action depending upon which one the user clicks.
You might
in case $_POST['submit'] == 'Yes' only 2nd example works. Right?
-a|fan
Perry Jönsson wrote:
Hello,
What is the difference between these two examples?
Both works fine for me.
1. if ($_POST['submit'] == 'Login') {
...
...
}
2. if (isset($_POST['submit']) {
...
...
}
--
PHP General
[snip]
What is the difference between these two examples?
Both works fine for me.
1. if ($_POST['submit'] == 'Login') {
...
...
}
2. if (isset($_POST['submit']) {
...
...
}
[/snip]
One is checking if $_POST contains a specific value, the other just checks to
Dear u r correct,
Both r same...
but in first case ur variable with a constant string value
And in second case u r checking that your variable is set or not
but one limitation with the function is that..
isset() only works with variables as passing anything else will result in a
parse error.
On Mon, 22 Nov 2004 21:38:00 +0100, Perry Jönsson [EMAIL PROTECTED] wrote:
What is the difference between these two examples?
diff 1.txt 2.txt
1c1
1. if ($_POST['submit'] == 'Login') {
---
2. if (isset($_POST['submit']) {
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
On Mon, Nov 22, 2004 at 09:38:00PM +0100, Perry Jönsson wrote:
1. if ($_POST['submit'] == 'Login') { ... }
This one is true if $_POST['submit'] is equal to 'Login'.
2. if (isset($_POST['submit']) { ... }
This one is true if $_POST['submit'] is set, it doesn't matter
which value it has.
/GM
Gerhard Meier wrote:
On Mon, Nov 22, 2004 at 09:38:00PM +0100, Perry Jönsson wrote:
1. if ($_POST['submit'] == 'Login') { ... }
This one is true if $_POST['submit'] is equal to 'Login'.
2. if (isset($_POST['submit']) { ... }
This one is true if $_POST['submit'] is set, it doesn't matter
which
Jay Blanchard wrote:
[snip]
What is the difference between these two examples?
Both works fine for me.
1. if ($_POST['submit'] == 'Login') {
...
...
}
2. if (isset($_POST['submit']) {
...
...
}
[/snip]
One is checking if $_POST contains a specific value, the other
Because you can have more than one submit button per form?
Warren Vail
-Original Message-
From: Perry Jönsson [mailto:[EMAIL PROTECTED]
Sent: Monday, November 22, 2004 12:56 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] $_POST['xxx'] = blabla ?
Gerhard Meier wrote:
On Mon, Nov
[snip]
One is checking if $_POST contains a specific value, the other just checks to
see if it contains a value. If $_POST['submit'] contains 'foo' is ISSET. Make
sense?
Maybe a daft question but why would you like to check for a specific value?
Can you give an example when this is a good
On Mon, 22 Nov 2004 21:57:23 +0100, Perry Jönsson [EMAIL PROTECTED] wrote:
Maybe a daft question but why would you like to check for a specific value?
Can you give an example when this is a good thing to do?
A forum. You have two submit buttons, one labeled 'draft' and one
labeled 'final'.
On Mon, Nov 22, 2004 at 09:55:35PM +0100, Perry Jönsson wrote:
Gerhard Meier wrote:
If you only have one form on a page, why would you like to check the
value/name of the submit button?
Is there a security aspect to this?
That was not your question. You asked what the difference is.
And
I speak under correction but the reason could be that if someone tries to hack
your site, for example I post to your HTML page, you want to check it your
$_POST contains a certain variable (which may be hidden)
Not really sure besides that
Perry Jönsson [EMAIL PROTECTED] 11/22/2004 10:57:23
anything,
could they not be reset easily?
[Original Message]
From: Angelo Zanetti [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Date: 11/23/2004 12:17:37 AM
Subject: Re: [PHP] $_POST['xxx'] = blabla ?
I speak under correction but the reason could be that if someone tries to
hack your
On Saturday 20 November 2004 21:02, Rory McKinley wrote:
My question is about the $_POST superglobal. I assume that there will be
only one instance of this superglobal per session and not per open
window
You would in fact get a version of $_POST for *each* _request_. Request
meaning each
I wonder why do you need script language=php /script
try without that
On Wed, 14 Jul 2004 23:17:01 +1000, Michael Purdy
[EMAIL PROTECTED] wrote:
Folks
I appreciate the answers received previously in relation to my 4,3 to 5.0 question
regarding $_REQUEST $_POST etc..
Unfortunately I am
What are the php.ini settings for error_reporting for both of these? A
difference in the error reporting could be causing those notices.
On Wed, 14 Jul 2004 23:17:01 +1000, Michael Purdy
[EMAIL PROTECTED] wrote:
Folks
I appreciate the answers received previously in relation to my 4,3 to 5.0
Thanks for help Daniel Clark. I know i must use isset function but that was
not the issue. But thanks anyway:)
Curt Zirzow thanks for your reply also. But that has nothing to do with
reference. If you use reference or not.. it still would not result in an
error (hee... I want an error :P)
Matt
[snip]
functionX($_POST[test_arr])
$arr_test = $_POST[test_arr];
Knowing that $_POST[test_arr]) does not exist.. this code will not
result
in a error.
Is this a bug,error,etc? Should this not also produce a novice error?
[snip]
I think when you are doing this
functionX($_POST[test_arr])
I've done a couple things. One is to use isset() and check first.
The other is to add a hidden input field, that way something is always sent.
input type=hidden name=test_arr[]
input type=checkbox name=test_arr[]
input type=checkbox name=test_arr[]
Best readers,
//PHP version: 4.3.6
I
* Thus wrote Amon ([EMAIL PROTECTED]):
functionX($_POST[test_arr])
$arr_test = $_POST[test_arr];
Knowing that $_POST[test_arr]) does not exist.. this code will not result
in a error.
Is this a bug,error,etc? Should this not also produce a novice error?
Taks a look at the definition of
On 24 March 2004 22:28, PHP Email List wrote:
And ? #2 are there any settings within PHP that would limit
my ability to
visually display the contents of a POST variable on a .rtf document as
opposed to being displayed on the browser?
Yes -- take a look at the variables_order directive
-Original Message-
From: PHP Email List [mailto:[EMAIL PROTECTED]
Sent: 24 March 2004 00:13
what happens if you do the following?
?php
$name = $_POST['FNAME'];
echo ::$name::;
$output = str_replace(FNAME, $name, $output);
?
??
I tried that, but I know I can
A technicality, but GET/POST are not interchangeable, it depends on the
method declared in your form. I'm sure you meant they were
interchangeable if you changed your form method. What is
interchangeable is $_REQUEST with $_POST or $_GET. You may try using
$_REQUEST just for testing. If it
-Original Message-
From: Brent Baisley [mailto:[EMAIL PROTECTED]
A technicality, but GET/POST are not interchangeable, it depends on the
method declared in your form. I'm sure you meant they were
interchangeable if you changed your form method.
Right I had mentioned that...
(all
-Original Message-
From: Brent Baisley [mailto:[EMAIL PROTECTED]
What is
interchangeable is $_REQUEST with $_POST or $_GET. You may try using
$_REQUEST just for testing. If it works, then you could use $_REQUEST
since it will work with GET or POST variables. Although that's not the
Ok here's the deal, I cut out the middle man, went straight
to the script, assigned my variable a string, and loaded the
rtf page, NADA, ZIP, ZILCH!!
At least as far as this test is concerned, I hope you have a nice soft desk
to bang your head on. Check your assignment operator one more
-Original Message-
From: Rick Fletcher [mailto:[EMAIL PROTECTED]
If your script has the same == where a plain ol' = should be, that'd
account for the replacement being empty (since it's replaced with
$na, which
wasn't assigned).
Well your correct, that put me to ease some, as now I
PHP Email List wrote:
Ok here's my problem, I'm in the midst of creating a string replace to work
on a rtf file that is on the server, this fuctionallity works perfect with
GET but not POST, I guess I don't understand why.
[snip]
$name = $_POST['FNAME'];
[snip]
$output =
PHP Email List wrote:
Ok here's my problem, I'm in the midst of creating a string replace to
work
on a rtf file that is on the server, this fuctionallity works perfect with
GET but not POST, I guess I don't understand why.
[snip]
$name = $_POST['FNAME'];
[snip]
$output =
PHP Email List mailto:[EMAIL PROTECTED]
on Tuesday, March 23, 2004 3:08 PM said:
This is becoming very odd!
Possible bug? I hate throwing that out there but it doesn't make
sense why one would work and the other wouldn't since all any of them
are doing is holding strings. Any other
what happens if you do the following?
?php
$name = $_POST['FNAME'];
echo ::$name::;
$output = str_replace(FNAME, $name, $output);
?
??
I tried that, but I know I can get the values from the $_POST array as per
John's email about using print_r($_POST) to see what was showing. And yes I
get
PHP Email List mailto:[EMAIL PROTECTED]
on Tuesday, March 23, 2004 4:13 PM said:
I tried that, but I know I can get the values from the $_POST array
as per John's email about using print_r($_POST) to see what was
showing. And yes I get the value I wanted in between the :: ::.
hhhm!!!
PHP Email List wrote:
Ok I tried the print_r($_POST) and received...
Array ( [FNAME] = test [LNAME] = t [ADDRESS] = t [CITY] = t [STATE] = t
[ZIP] = t [DATE] = t [PARAGRAPH1]= t [PARAGRAPH2] = t [FROM] = t
[SUBMIT] = TEST ME )
So they array isn't empty for my post. Obviously the values don't
-Original Message-
From: John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 7:59 PM
Like someone else said, you need to whittle your code down to a minimum
and do a lot of variable checking along the way. Slowly add code back
until you find what's causing the
On Fri, 2004-02-13 at 11:38, Joshua Beall wrote:
I want to turn off magic quotes. I realize in retrospect that using a
.htaccess file to turn magic quotes would probably be better than this code,
and I am going to switch to that solution, but I am still trying
to figure out what is causing my
On Sun, 2004-02-08 at 13:15, Paul Furman wrote:
Why am I getting the error Undefined index: comment?
It's probably a typo because I had something similar that worked.
form action=?php include (ACTION_DIR./jpeg-comment.php); ?
method=post
textarea name=comment ROWS=6 COLS=60
Adam Bregenzer wrote:
Also perhaps related, when I call $_POST[comment] in the action file,
it gives me Forbidden You don't have permission to access...[error
message] but this is my own server at home. I'm quite unfamiliar with
forms (and new to PHP for that matter).
That looks like an
Paul Furman wrote:
Adam Bregenzer wrote:
Make sure the
directory this file is in is accessible from the web.
No, it's not accessible from the web, it's in my protected php_library
outside public_html.
It does load the protected action file as long as I don't try to call
$_POST[comment]
On Sun, 2004-02-08 at 13:32, Paul Furman wrote:
No, it's not accessible from the web, it's in my protected php_library
outside public_html. Can't I execute a hidden script with a form?
no
Should
I make a little php action file in public_html that includes the actual
file?
yes
--
Adam
Adam Bregenzer wrote:
Should I make a little php action file in public_html
that includes the actual file?
yes
OK thanks, I made this:
?php
# jpeg-comment-public.php
include (C:/_Paul/web/phplib/action/jpeg-comment.php);
?
but now the hidden one isn't aware of any variables.
Forbidden
You
Adam Bregenzer wrote:
You will not have access to the $_POST[comment] variable until the
form is submitted.
Understood. That debug test only worked after submitting the form.
So maybe the better way is to just submit the form with the action file
simply reloading the main page to refresh it
On Sun, 2004-02-08 at 13:58, Paul Furman wrote:
OK thanks, I made this:
?php
# jpeg-comment-public.php
include (C:/_Paul/web/phplib/action/jpeg-comment.php);
?
but now the hidden one isn't aware of any variables.
Forbidden
You don't have permission to access
Notice: Undefined
On Friday, December 19, 2003, at 05:44 PM, Burrito Warrior wrote:
That practice $_POST[formReviewBy] should be discouraged. That kind
of practice is nearly as bad as magic numbers.
I think you'll find I *was* discouraging it.
Justin
--
PHP General Mailing List (http://www.php.net/)
To
Burrito Warrior --
...and then Burrito Warrior said...
%
% That practice $_POST[formReviewBy] should be discouraged. That kind
% of practice is nearly as bad as magic numbers.
What are magic numbers? Surely you don't mean the file recognition codes
in /etc/magic for use by file(1) under
[snip]
What are magic numbers? Surely you don't mean the file recognition
codes
in /etc/magic for use by file(1) under *NIX...
[/snip]
Magic numbers are hard coded numbers that are not referrenced by a
variable i.e.
$thisNumber = (4 == $magic)? do stuff: do other stuff;
should be
$var = 4;
It should have quotes, unless you have defined formReviewBy as a constant
PHP's nice enough to interpret it as a string if using it as a constant
fails, but you should still quote it anyway.
Martin
?php if ($_POST[formReviewBy]==Cade Lloyd) { echo selected; } ?
Should $_POST[formReviewBy]
On Friday, December 19, 2003, at 01:35 PM, Philip J. Newman wrote:
?php if ($_POST[formReviewBy]==Cade Lloyd) { echo selected; } ?
Should $_POST[formReviewBy] have quotes or dose it not matter?
Well, since you've obviously tested it and it works, then the simple
answer is probably it doesn't
[mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 8:57 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] $_POST[]
On Friday, December 19, 2003, at 01:35 PM, Philip J. Newman wrote:
?php if ($_POST[formReviewBy]==Cade Lloyd) { echo selected; } ?
Should $_POST[formReviewBy
From: Christian Jancso [EMAIL PROTECTED]
I have the following problem:
How can I use variables in the $_POST statement?
Here is my code:
$old_station[$o] = $_POST['$i'];
$new_station[$o] = $_POST['$i'];
$old_station[$o] = $_POST[$i];
$new_station[$o] = $_POST[$i];
Variables are not
On Dec 11, 2003, at 8:02 AM, Christian Jancso wrote:
Hi there,
I have the following problem:
How can I use variables in the $_POST statement?
Here is my code:
$old_station[$o] = $_POST['$i'];
$new_station[$o] = $_POST['$i'];
Christian,
My biggest question is: What are $i and $o set to?
Unless
On 10 December 2003 16:19, ROBERT MCPEAK contributed these pearls of wisdom:
Has anybody seen the seemingly automatic and unexplained
conversion of the character . to _ in $_POST var names?
Yes. It's PHP automagic by PHP.
I've tested several ways, with and without PHP, and I've dug
around
--- ROBERT MCPEAK [EMAIL PROTECTED] wrote:
Has anybody seen the seemingly automatic and unexplained conversion of
the character . to _ in $_POST var names?
This is intentional. The . character is not allowed in a variable name,
so PHP has to translate your HTML form's variable name to a PHP one
Thanks all. I guessed that it was something built in to PHP, although I was surprised
when I couldn't find a good explanation in the usually excellent docs. -Bob Mc
Ford, Mike [LSS] [EMAIL PROTECTED] 12/10/03 11:29AM
On 10 December 2003 16:19, ROBERT MCPEAK contributed these
On Thu, Nov 13, 2003 at 12:59:11AM -0500, Jake McHenry wrote:
:
: -Original Message-
: From: Jake McHenry [mailto:[EMAIL PROTECTED]
: Sent: Thursday, November 13, 2003 12:53 AM
: To: [EMAIL PROTECTED]
: Subject: [PHP] $_POST bug?
:
: I have 5 fields, all 1 character in length,
My system (win2000 IIS) also handles 0, and webserver (redhat apache) also
handles 0.
Your system sounds faulty in some way,
what browser are U using and what version of PHP.
I know from earlier experience that some versions of Netscape behaves
strange on the
form elements, meaning when posting
-Original Message-
From: Eugene Lee [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 3:48 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] $_POST bug?
On Thu, Nov 13, 2003 at 12:59:11AM -0500, Jake McHenry wrote:
:
: -Original Message-
: From: Jake McHenry
-Original Message-
From: Kim Steinhaug [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 3:28 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] $_POST bug?
My system (win2000 IIS) also handles 0, and webserver (redhat
apache) also handles 0.
Your system sounds faulty
On Thu, Nov 13, 2003 at 04:04:16AM -0500, Jake McHenry wrote:
:
: print_r($_POST) shows me that $_POST has the single 0 value. I solved
: my problem, instead of having just if ($_POST['test']), I changed it
: to if ($_POST['test'] != ). Right after I posted, I tried this, and
: a couple other
Hi,
(I think you intended to send this to the list...)
On Thu, 13 Nov 2003 02:03:50 -0500
Jake McHenry [EMAIL PROTECTED] wrote:
...[snip]...
I'm running RHLinux 9, php 4.2.2, apache 2.0.40
Hmm... same here. Only difference could be that I rebuilt the
php RPMs to support mbstring--I'm sure
Jake McHenry wrote:
I've tried it on opera, netscape, IE, and mozilla right on the server.
It seems to be a php condition thing, not really what's in the $_POST
array, as I just posted print_r($_POST) does contain the values, it's
only when I have if ($_POST['test']) that the problem occurs.
--- Jake McHenry [EMAIL PROTECTED] wrote:
print_r($_POST) shows me that $_POST has the single 0 value. I solved
my problem, instead of having just if ($_POST['test']), I changed it
to if ($_POST['test'] != ). Right after I posted, I tried this, and
a couple other things.. The problem only
-Original Message-
From: Eugene Lee [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 4:28 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] $_POST bug?
On Thu, Nov 13, 2003 at 04:04:16AM -0500, Jake McHenry wrote:
:
: print_r($_POST) shows me that $_POST has the single 0
-Original Message-
From: Jake McHenry [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 12:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] $_POST bug?
I have 5 fields, all 1 character in length, numbers being
entered. If zero's are entered in the boxes, and the form is
On Thu, 13 Nov 2003 00:59:11 -0500
Jake McHenry [EMAIL PROTECTED] wrote:
...[snip]...
Just to test, I changed the input field length to 3, and
every time I tried it, single 0 does not create the $_POST
variable. Double 0's create it, along with any other
numbers, it's only when a single 0 is
On Thursday 13 November 2003 00:59, Jake McHenry wrote:
-Original Message-
From: Jake McHenry [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 12:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] $_POST bug?
I have 5 fields, all 1 character in length, numbers being
101 - 200 of 250 matches
Mail list logo