$_POST is used to collect data after submitting html forms.
$_POST return associative array.
<?php
if(isset($_POST['submit'])){
echo $_POST['name'];
}
?>
<form name="register" method="post" action="">
Name <input type="text" name="name">
<input type="submit" name="submit" id="submit" value="submit now">
</form>
Copyright ©2022 coderraj.com. All Rights Reserved.