how to get data from html form in php
// Page containing a form:
<form action="myaction.php" method="post">
<p>Your name : <input type="text" name="name" /></p>
<input type="submit" value="Submit">
</form>
// myaction.php
Hello <?php echo htmlspecialchars($_POST['name']); ?>