Jump to content

[SOLVED] Query String Question


studgate

Recommended Posts

Hey Guys,

  I want to check if a url contains a query string or not. How do I go about doing that??

What I am looking for is a simple code of function that checks the url and if there is no

query string, show this and if there is query string show that.

 

I hope I explain it right. Thanks in advance guys!

 

Example:

         

 if querystring() {
                echo '&';
             } else {
                echo '?';
             }

Link to comment
https://forums.phpfreaks.com/topic/135588-solved-query-string-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.