Saving State with Query Strings in PHP

Saving State with Query Strings in PHP A query string is used to pass small amounts of data between browser requests.

Common uses of query strings are:

  • Remembering a user’s entered keywords when using a search function.
  • Identifying which topic within a forum to display to the user.
  • Specifying which post within a blog to display.

It is very easy for a user to alter the Query string data because it is visible and editable within the browser’s address bar.

Scroll to Top