I am trying to get the value of two text boxes through GET method. But when i try to print them both. I am not able to do it. The code works perfectly when i do it with single text box.
<?php
if(isset($_GET['name']) && isset($_GET['id']))
{
$username = $_GET['name'];
$userid = $_GET['id'];
echo 'Hi '.$username.'<br>';
echo "Emp Id is ".$userid;
}
?>
<form action="contact-DB.php" method="GET">
Enter Employee Name : <input type = "text" name = "name"><br>
Enter Employee ID : <input type = "text" name = "id">
<input type = "button" name="submit" value="Submit">