bassouma86
03-05-2004, 08:46 AM
hey there
I was going through a PHP book 2 learn the language & in the chapter that really mattered (it was talkin' about forms & so) i tried 2 use the code but it didn't work.
can any one help ????
thx
// the PHP tag didn't work
<html>
<head>
<title>Listing 9.2 A simple HTML form</title>
</head>
<body>
<form action="eg9.3.php" method="GET">
<input type="text" name="user">
<br>
<textarea name="address" rows="5" cols="40">
</textarea>
<br>
<input type="submit" value="hit it!">
</form>
</body>
</html>
this was saved in a PHP file named 9.2.php
------------------------------------------------------------------------------------
<html>
<head>
<title>Listing 9.3 Reading input from the form in Listing 9.2</title>
</head>
<body>
<?php
print "Welcome <b>$user</b><P>\n\n";
print "Your address is:<P>\n\n<b>$address</b>";
?>
</body>
</html>
this was saved in a PHP file named 9.3.php
I was going through a PHP book 2 learn the language & in the chapter that really mattered (it was talkin' about forms & so) i tried 2 use the code but it didn't work.
can any one help ????
thx
// the PHP tag didn't work
<html>
<head>
<title>Listing 9.2 A simple HTML form</title>
</head>
<body>
<form action="eg9.3.php" method="GET">
<input type="text" name="user">
<br>
<textarea name="address" rows="5" cols="40">
</textarea>
<br>
<input type="submit" value="hit it!">
</form>
</body>
</html>
this was saved in a PHP file named 9.2.php
------------------------------------------------------------------------------------
<html>
<head>
<title>Listing 9.3 Reading input from the form in Listing 9.2</title>
</head>
<body>
<?php
print "Welcome <b>$user</b><P>\n\n";
print "Your address is:<P>\n\n<b>$address</b>";
?>
</body>
</html>
this was saved in a PHP file named 9.3.php