Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed Working with $_GET and $_POST in PHP!

Instruction

Choosing Between $_GET and $_POST

Which Superglobal Should I Use? $_GET or $_POST?

If you aren't sure about when to use $_GET and $_POST superglobal variables, here are some basic rules that will help you get started. Check out the two examples below illustrating which superglobal variable to use and when.

With Query String

Use the $_GET method if the information you’ll be passing is not sensitive or a secu...