Re: still have the same problem
| From: | David Robley | Date: | Mon, 13 Dec 2004 08:18:25 +0000 |
| Subject: | Re: still have the same problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204139@lists.php.net to get a copy of this message | ||
On Mon, 13 Dec 2004 16:17, Mecnun wrote:
> I have a form and a php file. I enter some values from the form and click
> to submit button. The values that I enter can't be seen on the output. I'm
> using Php php-4.0.5 and my register_global is set to Off.
>
> HTML file:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <title>9.2</title>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
> </head>
> <body>
> <form action="listing9.3.php" method="POST">
> Name: <br>
> <input type = "text" name="user">
> <br>
> Address:<br>
> <textarea name="address" rows="5"
> cols="40"></textarea>
> <br>
> <input type="submit" value="Send">
> </form>
> </body>
> </html>
>
> PHP File:
>
> <?php
> print "Welcome <b> $_POST[user] </b> <P>\n\n";
> print "Your address is:<P>\n\n <b> $_POST[address] </b>";
> ?>
Try
<?php
print "Welcome <b> " . $_POST['user'] . " </b>
<P>\n\n";
print "Your address is:<P>\n\n <b> " . $_POST['address'] . "
</b>";
?>
> The output dont show the user value or address value.
--
David Robley
"I commanded a group of ships for a week," Tom said fleetingly.