freeCodeCamp/guide/english/php/forms/handling-form-input/index.md

19 lines
613 B
Markdown
Raw Normal View History

---
title: Handling Form Input
---
## Handling Form Input
2018-10-12 20:29:57 +00:00
GET VS POST
One can get form inputs with global variables $_POST and $_GET.
```
$_POST["firstname"] or $_GET['lastname']
```
<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>.
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
#### More Information:
<!-- Please add any articles you think might be helpful to read before writing the article -->