What is Query String?

A query string is a part of a uniform resource locator (URL) that assigns values to specified parameters. A query string commonly includes fields added to a base URL by a Web browser or other client application, for example as part of an HTML, choosing the appearance of a page, or jumping to positions in multimedia content.

Query string is to pass data one page to another page via link or another function.

  1. How to send data
  2. How to access data

Send Data

<a href="abc.php?variable_name=value&variable_name2=value2....">Send Value</a>

Access Data

Access query string in php with the help of

$_GET['variable_name'];

kabeer

Added  Sep 03, 01:29 pm

Article tags

×
Google login
SignUp with Email
X