Form variable can't transfer to web page
| From: | Morris Law | Date: | Tue, 13 Apr 2004 06:11:18 +0000 |
| Subject: | Form variable can't transfer to web page | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-183203@lists.php.net to get a copy of this message | ||
Dear all PHP users,
I have installed a new web server for PHP scripting.
I wrote a PHP form page to submit some variables to
another PHP pages. After submission, I found that the
variables cannot be echoed out. The scripts are as simple
like these,
<!-- hello2.php-->
<body>
<?php
print "<form action=\"hello.php\" method=\"POST\">\n";
print "Name: <input type=\"text\"
name=\"name\"><br>\n";
print "<input type=\"submit\">\n</form>\n";
?>
<!-- hello.php-->
<body> <?php echo("Hello, $name!\n"); echo("<p>\nWhat a
<b>bold</b> move
this is!\n"); ?> </body>
What sort of problem relating to installation is it?
Thanks for any inputs and advice.
Morris Law
IT Coordinator
Science Faculty
Hong Kong Baptist University
</body>