When sending a form out on the web there are two ways to send them. You can either send them using Get or Post.

Get

When you use get, the system will send the entire path of the form with information. An example of this is:

<form action="/action_page.php" method="get">
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>

Get can be used to book mark items, Whereas, with Post it can not be book marked.
Get also has a character limit on the length of the message being sent to 3000 on the length

Post

Post is used when there is sensitive data that needs to be transferred. It has an unlimited character limit. Also, with Post you can not book mark it.

<form action="/action_page.php" method="Post">
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>

Just always remember that Posts are for sensitive data where get sends out all information in its browser link. Here is an example of the GET send:

https://whateversite.com/action_page.php?fname=eden+&lname=williamson...

Post Send:

https://www.w3schools.com/action_page.php


As you can see, when there are times you need to send sensitive data you will always want to choose Post!


Tasks 0/2 completed
1. Create an email form using the post method.
2. Create an email form using the get method.


Top Helpers in This Lesson

Join the Discussion
Write something…
Recent messages
Tirolith Premium
Very well done.

Tom.
Reply
edensbox Premium
Thank you! I am going to add a couple of other units to go with it.
Reply
bill808 Premium Plus
Thanks, very worthwhile
Reply
edensbox Premium
thank you!
Reply
Top