php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21678 cann't track vars of the form query string
Submitted: 2003-01-16 01:55 UTC Modified: 2003-01-16 18:18 UTC
From: nblattar at talk21 dot com Assigned:
Status: Not a bug Package: Strings related
PHP Version: 4.2.2 OS: Linux RedHat8 & IIS on Win2000
Private report: No CVE-ID: None
 [2003-01-16 01:55 UTC] nblattar at talk21 dot com
i have 1.htm file as following :
<HTML>
<HEAD></HEAD>
<BODY>
<FORM METHOD=GET ACTION="2.php">
Who is your favourite author?
<INPUT NAME="Author" TYPE="TEXT">
<BR>
<BR>
<INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>


*****

and the action file 2.php   as following

<HTML>
<HEAD></HEAD>
<BODY>
Your favorite author is:
<?php
echo $Author;
?>
</BODY>
</HTML>

but after submit i got the following in 2.php

1- in the URL :  http://localhost/2.php?Author=Tom
2- in the body  i got only :
Your favorite author is:
With no value of $Author var even it is in the URL 

Please help me

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-16 01:58 UTC] derick@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.
 [2003-01-16 18:18 UTC] nblattar at talk21 dot com
Thanks so much , it worked so well now.

best regards
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 11:01:30 2024 UTC