Here's the main index page:
<html>
<body>
<form action="action.php" method="post">
Name: <input type="text" name="fname">
Age: <input type="text" name="age">
<input type="submit" name="mybutton" />
</form>
</body>
</html>
Here's the action page:
<?php
$mycar='';
echo "$mycar";
?>
I left the variable $mycar empty because i'm trying to assign it's value as my forms name (fname).
How do I do this?
I'm so confused!