Parameter ‘POST’ in PHP

Parameter,we know about this function in the PHP languages.And we know,there’s several kinds parameter in PHP,like GET,POST,and many more.

Okay,the base syntax of parameter,like this..

<?php
<form method="POST" action="output.php">
<input type="text" name="id" />
$_POST[id]
?>

And we know,the important things to make the parameter is method, $_POST/GET syntax to make the output of this project,and the name of input.

Let’s try this project.

input.php

<html>
<head></head>
<body>
<h3>Fill this form,whatever you want !</h3>
<form method="POST" action="output.php">
<input type="text" name="satu" />
<input type="text" name="dua" />
<input type="text" name="tiga" />
<input type="submit" value="submit" />
</form>
</body>
</html>

output.php

<html>
<head></head>
<body>
<h3>Parameter from Input Form</h3>
<?php
echo "
$_POST[satu]</br>
$_POST[dua]</br>
$_POST[tiga]</br> ";
?>
</body>
</html>

After you’ve done it,so begin it with open the file input.php

So,the results like this.

Okay,let’s try it ! Good luck😀

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s