RE: [PHP-DB] Newbie question

From: Date: Wed, 24 Mar 2004 21:12:40 +0000
Subject: RE: [PHP-DB] Newbie question
Groups: php.db 
Request: Send a blank email to php-db+get-33629@lists.php.net to get a copy of this message
Try: <? print "Hello ".$_POST["name"]; ?> > -----Original Message----- > From: Gajo Csaba [mailto:gcsaba2@freemail.hu] > Sent: Wednesday, March 24, 2004 4:10 PM > To: php-db@lists.php.net > Subject: [PHP-DB] 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 > >

« previous php.db (#33629) next »