RE: Newbie question

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

 



Try:

<?
	print "Hello ".$_POST["name"];
?>



> -----Original Message-----
> From: Gajo Csaba [mailto:gcsaba2@xxxxxxxxxxx]
> Sent: Wednesday, March 24, 2004 4:10 PM
> To: php-db@xxxxxxxxxxxxx
> Subject:  Newbie question
> 
> 
> Hi!
> I'm new to PHP, so this may be an easy question. I tried to make a 
> simple form-page, where the user enters his name, and on the 
> following 
> page it says "Hello $name". What happens is that on the 
> second page it 
> says soemthing like "unknown identifier $name".
> 
> I'm using Apache 2 so that may be causing the problem, cause 
> this is a 
> clear textbook example:
> 
> ---------------------- first.php ----------------------
> <html>
> <head>
> <title>First</title>
> </head>
> <body bgcolor="#ffffff" text="#000000" link="#cbda74" 
> vlink="#808040"
> alink="#808040">
> <form action="second.php" method="post">
> <b>Whats your name?</b>
> <input type="text" name="name" size="20" maxlength="20" 
> value=""><br>
> <input type="submit" value="go!">
> </form>
> </body>
> 
> --------------- second.php --------
> <html>
> <head>
> <title>Second</title>
> </head>
> <body bgcolor="#ffffff" text="#000000" link="#cbda74" 
> vlink="#808040"
> alink="#808040">
> <?
> 	print "Hello $name!";
> ?>
> </body>
> </html>
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux