I have a simple html form
<!DOCTYPE html>
<html>
<form action="trial2.html" method="get">
<input type="text" name="name">
<input type="submit">
</form>
</html>
which then runs this trial2.html
<!DOCTYPE html>
<html>
<?php
$val = $_GET["name"];
echo($val);
?>
</html>
I cannot work out why echo won't print out "name" although it can print out generic strings
I've been using w3schools as a reference but I think I'm just being stupid somewhere/completely missing the point.