Im studying php from freeCodeCamp’s youtube video.
The exercise at the video’s timestamp gives me this when compiled:
Notice: Undefined index: name in C:\wamp64\www\zadaci\form\site.php on line 13
(Line 13 = <?php echo $_GET["name"] ?>)
What did I do wrong?
site.php:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<form action="site.php" method="get">
Name: <input type="text" name="name">
<input type="submit">
</form>
<br>
<?php echo $_GET["name"] ?>
</body>
</html>