How to use HTML form with get method and receive the form data in PHP

1 Answer

0 votes
// user.php
$name = $_GET["name"];
echo $name;
<!-- index.php -->
<form action="user.php" method="get">  
    Name: <input type="text" name="name"/>  
    <input type="submit" value="user"/>  
</form>  

 



answered Oct 11, 2019 by avibootz
edited Oct 11, 2019 by avibootz
...