Php using values from a query string

Using Php one can easily obtain values from a url which has a query string. For example one could have a url called https://www.example.com/?id=25;

The value 25 can be obtained by using the GET attribute. Something like $value=GET [‘id’];

Using the GET attribute one can generate pages with varying content but the same structure by having different id values.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s