php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29670 Error declare variable
Submitted: 2004-08-14 04:12 UTC Modified: 2004-08-16 08:41 UTC
From: caspersvn at yahoo dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.0.0 OS: windows 2000 pro
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: caspersvn at yahoo dot com
New email:
PHP Version: OS:

 

 [2004-08-14 04:12 UTC] caspersvn at yahoo dot com
Description:
------------
when i run this page i receive an error

Notice: Undefined variable: fname in E:\GPO\Webphp\guestbook\guestbook.php on line 52

and i can receive the value of variable if i submit from page 'A' to page 'B' (page B can not receive the value of variable what sent from page A)

please show me the way to solve it.

Thanks

Reproduce code:
---------------
<?
  if ($fname=="toan")
{
  echo ("right");
}
  else {
?>
  <form method=post>
      Name: <input type="text" name="fname"> <input type="submit" name="submit" value="Enter Information">
  </form>
<? } ?>



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-16 08:41 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 10:01:32 2024 UTC