#19375 [NEW]: Calling a php page from an html form
| From: | Agostino dot Calamita at italtel dot it | Date: | Thu, 12 Sep 2002 13:54:42 +0000 |
| Subject: | #19375 [NEW]: Calling a php page from an html form | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-19243@lists.php.net to get a copy of this message | ||
From: Agostino.Calamita@italtel.it
Operating system: Windows
PHP version: 4.2.3
PHP Bug Type: Scripting Engine problem
Bug description: Calling a php page from an html form
Hi, I installed PHP 4.2.3 on a Windows NT workstation with Xitami Web
Server 2.4d9.
I have a simple html page with a form like this:
<FORM NAME="myname" METHOD="POST" ACTION="test.php">
<INPUT TYPE=TEXT NAME="myfield" SIZE=20>
<INPUT TYPE=submit>
</FORM>
and a simple php file (test.php) like this:
<HTML>
<BODY>
<?php
echo "Your field is: ";
echo $myfield;
?>
</BODY>
</HTML>
When I use the submit the form, PHP executes test.php
and give my this page:
Your field is:
Notice: Undefined variable: myfield in C:\Xitami\webpages\test.php on line
5
If I unistall PHP 4.2.3 and install PHP 4.1.1, everything works fine and I
got what I wrote inside myfield.
I don't know if this is a bug or a security problem.
--
Edit bug report at http://bugs.php.net/?id=19375&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19375&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19375&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19375&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19375&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19375&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19375&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19375&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19375&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19375&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19375&r=globals