A
Anonymous
Guest
hi. I'm trying to learn php but i am stuck at this part: im trying to create a form where you submit your name and adress. anyway this is what i hav:
thats where the user would input the text. right? then submit it. this is the php script now
why, when the user hits submit, the only thing that is displayed in the browsers is welcome: and your address is:
???? why doesnt it display the value that the user submitted?
Code:
<html>
<head>
<title> 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>
thats where the user would input the text. right? then submit it. this is the php script now
Code:
<html>
<head>
<title>input </title>
</head>
<body>
<?php
echo "Welcome: $user<br>";
echo "Your address is: $address";
?>
</body>
</html>
why, when the user hits submit, the only thing that is displayed in the browsers is welcome: and your address is:
???? why doesnt it display the value that the user submitted?