Php Input

There are two input method in PHP: Get and Post.

Message with Get will show in the url address and has a 100 characters length limit.

Message with Post will hide from users.

$_GET
Code: Html Form

Code: PHP receiver

Try enter abcdefg in the box 1 and 123 in box 2.

Result An get result for box 1 abcdefg. Box 2 123

$_POST
Code: Html Form

Code: PHP receiver

Try enter aaa in the box 1 and 111 in box 2.

Result An get result for box 1 aaa. Box 2 111

$_REQUEST
$_REQUEST method can receive data from both Get and Post structure.

Code: PHP receiver