<?php
echo '<form action="index3.php "method="get">
Name: <input type="text" name="fname"/>
<br/>
Surname: <input type="text" name="fsur"/>
<br/>
Phone: <input type="number" name="phone"/>
<br/>
Email: <input type="email" name="email"/>
<input type="submit" value="Go">
</form>';
$name = $_GET["fname"];
$surname = $_GET["fsur"];
$phone = $_GET["phone"];
$email = $_GET["email"];
echo "Hello " . $fname . " " . $fsur . ". You will soon get a confirmation email at: " . $email . " and a confirmation message at this number: " . $phone;
?>
I am trying to store into variables the input (fname,fsur,phone,email) of an echoed form in a php code to use them in the same php file and print them as shown below. When i run the code i get these errors in my browser. I use firefox. Is there any way I can do that?