|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20227 the .php can not get variable values from the input
Submitted: 2002-11-03 07:57 UTC Modified: 2002-11-03 08:11 UTC
From: ddd at ddd dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.2.3 OS: W2k Server English
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ddd at ddd dot com
New email:
PHP Version: OS:


 [2002-11-03 07:57 UTC] ddd at ddd dot com
I have installed the php 4.2.3 in W2K Server (en) Box, via ISAPI, the 
<? phpinfo();?> works fine...

but when I write the example as folling...

# fils: test.html
<H1>Please Input your name:</H1>
<form method="POST" action="first.php">
  <p><b>Your Name is</b><input type="text" name="text1" size="20">
<input type="submit" value="Commit" name="button1"></p>

<?  if (!($text))
    echo "<H1>Your name is".$text1."</H1>"; 
echo "please input your name!";

When I key in some words in the text1 field... and commit...

but the first.php just return the following...

Your name is:

It seems the variable value has not been successfully transiitted to the first.php, or the php can not get the variable's value content correctly..

why this happy???


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-03 08:11 UTC]
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See 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.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 24 13:01:31 2024 UTC