About this lesson
Download this lesson’s related exercise files.Form Handling - GET vs POST.docx
199.7 KB Form Handling - GET vs POST - Solution.docx
Form Handling - GET vs POST
Forms are used on a website to allow site visitors to interact with you in some way.
When to use
Whenever you want to add a form to a webpage.
Here's the basic HTML template I used in the video:
<form action="form.php" method="post">
Name: <input type="text" name="name"><br/><br/>
Hints & tips
- Forms send data from web pages
- Forms use POST and GET as methods
- POST variables look like $_POST["field_name"];
- GET variables look like $_GET["field_name"];
Lesson notes are only available for subscribers.