Originally Posted by
Austinwhite
There is s a spelling mistake in the following line.
HTML Code:
Enter you name : <input n="name" type="text"> // input tag is 'name', not 'n'
Change it to
HTML Code:
Enter you name : <input name="name" type="text">
See the corrected script below.
PHP Code:
<?php
if (isset ($_GET['name']) ) {
echo 'i got the name';
echo 'Hi ' . $_GET['name'] . ' Whats up buddy!';
}
else {
echo'
<html>
<body>
<p> welcome to my website! </P>';
echo 'Whats you name?';
echo '<form method="GET" action="day7.php">
Enter you name : <input name="name" type="text">
<button type="submit">Go</botton>
</form>
</body>
</html>';
}
Bookmarks