Jump to content

get values from URL


damiantaylor

Recommended Posts

Hi,

I want to be able to test if a particular price range was passed in the URL.

The URL I'm passing is www.myurl.com?Price_Range=10-20&Price_Range=20-30

I've tried using something like this

if(isset($_GET['Price_Range']['10-20'])) echo 'found it';

 

But it didn't work.

Is there a way I can check for a value passed in the URL given the key is 'Price_Range'?

 

Thank you

 

 

Link to comment
https://forums.phpfreaks.com/topic/196038-get-values-from-url/
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.