Re: still have the same problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux