$_GET and $_POST

html, php, syntax

Solution

It sounds like you've misplaced or mistyped the method attribute and your form is defaulting to HTTP GET. The form should look like this:

<form method="post" action="file.html">

Problem

I have a form and the method is set to post on the action page when I use `$_POST` i dont get the value but if I use `$_GET` or `$_REQUEST` I do. This does not make sense. Could someone just clarify it for me? The code of the form is ``` <form action="create.php" method"POST"> ``` Just realized I am missing the = after method.

Original source