I am just starting out and am working on passing a variable from a form to another page. The tutorial I have says this should work, but it does not.
I have my html form page
enter.htm
<html>
<head>
<title>My Form</title>
</head>
<body>
<form action="display.php" method="post">
My Name is:
<br><input type="text" name="YourName">
<br><input type="submit" value="submit" name="submit">
</form>
</body>
</html>
then then the display page:
display.php
<html>
<head>
<title>Display</title>
</head>
<body>
Hi <?php echo $YourName; ?>
</body>
</html>
This seems so basic and I am struggling with it. :mad: Any ideas would be appreciated.
Josh