How to post data in PHP

For post data superglobals $_GET and $_POST are used in php.:
.

Example:

dzone img This is a simple html form
<html>
<body>

<form action="index.php" method="post">
Name: <input type="text" name="name"><br>
E-mail: <input type="text" name="email"><br>
<input type="submit">
</form>

</body>
</html>
PHP file:

index.php.

<html>
<body>

Welcome <?php echo $_POST["name"]; ?><br>
Your email address is: <?php echo $_POST["email"]; ?>

</body>
</html>
Learn PHP If-else Conditions:   We have the following conditional statements in PHP language
Learn PHP loops:  For loops execute the code number of times.
PHP Form Submission:  For post data superglobals $_GET and $_POST are used in php.
Learn PHP array:  An array stores multiple values in one single variable