Jump to content

[SOLVED] Modifying an if statement to include url with various query strings


AshleyQuick

Recommended Posts

<?php
if($_SERVER["PHP_SELF"] == '/products/expitem.php') {
?>
<?php

?>
Content
<?php
}
?>

 

The above has always worked fine but I need this to be changed because there are now query strings attached.

 

expitem.php?cmd=exp&id=item01

 

expitem.php?cmd=exp&id=item02

 

etc..

 

---

 

expitem.php?cmd=exp&id= will remain the same but the string on the end (item...) will be now be dynamic.  How can the code above "disregard" what's on the end and display the content?

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.