- So I asked the user to enter "First name" "Last name" and click submit and when they click submit it takes them to a different html page. I want to say "Welcome "first name" "last name"
Update: html file....
<form name ="myForm" action="index.php" method="post" >
Please Enter your Firstname :<br>
<input type="text" name="fname" value="" method="post">
<br>
index.php file
<h1>Welcome <?php echo $_POST["fname"]; ?><br></h1>
But php file only says Welcome...