$_POST, not $POST
Afan Pasalic wrote:
I think I am a little bit "confused" about $HTTP_POST_VARS and $_POST.
php.net manual: Note that $HTTP_POST_VARS and $_POST are different
variables and that PHP handles them as such
http://us4.php.net/reserved.variables
?
And the example I wrote still
Afan Pasalic wrote:
I think I am a little bit "confused" about $HTTP_POST_VARS and $_POST.
php.net manual: Note that $HTTP_POST_VARS and $_POST are different
variables and that PHP handles them as such
http://us4.php.net/reserved.variables
?
And the example I wrote still doesn't work:
nam
From: "Afan Pasalic" <[EMAIL PROTECTED]>
After submitting $HTTP_POST_VARS['SubmitForm'] has value 'Submit' and
$POST['SubmitForm'] is empty.
Because it's $_POST and not $POST? If that's just at typo, check your code
for typos, too. Did you ever tell us what version of PHP you're using?
---John H
Afan Pasalic wrote:
I think I am a little bit "confused" about $HTTP_POST_VARS and $_POST.
php.net manual: Note that $HTTP_POST_VARS and $_POST are different
variables and that PHP handles them as such
http://us4.php.net/reserved.variables
This just means that they don't occupy the same space
On Wed, 2004-09-01 at 14:05, Afan Pasalic wrote:
> I think I am a little bit "confused" about $HTTP_POST_VARS and $_POST.
>
> php.net manual: Note that $HTTP_POST_VARS and $_POST are different
> variables and that PHP handles them as such
> http://us4.php.net/reserved.variables
>
> ?
>
>
I think I am a little bit "confused" about $HTTP_POST_VARS and $_POST.
php.net manual: Note that $HTTP_POST_VARS and $_POST are different
variables and that PHP handles them as such
http://us4.php.net/reserved.variables
?
And the example I wrote still doesn't work:
name
After submittin
Sorry guys, my mistake:
This thing doesn't work:
if(isset($HTTP_POST_VARS['SubmitForm']) == 'Submit')
i added isset() on wrong place.
Thanks to everybody!
Afan
Afan Pasalic wrote:
That's exactly what I did. I overwrite the existing .htaccess with
"my" (that has php_flag register_global off) in roo
That's exactly what I did. I overwrite the existing .htaccess with "my"
(that has php_flag register_global off) in root directory of my web site
(actually: /client/home/afan/docs/.htaccess - place where my web site is
stored). And I have a permission and it really overwrote the existing
.htacce
On Wed, 2004-09-01 at 12:37, Afan Pasalic wrote:
> Me again with same thing.
> I added to
> .htaccess php_flag register_globals off
> but it still doesn't work.
> When I list phpinfo() it shows me Master value for register_global: On
> On my local computer (localhost) it shows me Off.
> I need it
Actually, I think I read your message wrong... it should be:
php_flag register_globals Off
Ben Ramsey wrote:
The Master value will remain On since it's On in php.ini and the Local
value (the value for the directory in which phpinfo() is run) will be
Off since that directory has an .htaccess file
The Master value will remain On since it's On in php.ini and the Local
value (the value for the directory in which phpinfo() is run) will be
Off since that directory has an .htaccess file turning register_globals Off.
If you want to affect all of your sites, change the setting in php.ini
or in
11 matches
Mail list logo