Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

if page equals (php help pls)


Guest

Recommended Posts

ok ive already got something working except i would like to be able to say if page = mypage.php (followed by anything) then print this

 

eg:

 

mypage.php?

mypage.php?&this_could_be_anything

 

what I am using now is:

 

<?php $myIndexPage = "index.php";
$myDomainName = "mydomain.com";
$_SERVER[HTTP_HOST] = strtolower($_SERVER[HTTP_HOST]);
if($_SERVER[REQUEST_URI]=="/".$myIndexPage or $_SERVER[REQUEST_URI]=="/".$myIndexPage."/" or $_SERVER[REQUEST_URI]=="/" or $_SERVER[REQUEST_URI]=="/?currency=EUR" or $_SERVER[REQUEST_URI]=="/?currency=GBP" or $_SERVER[REQUEST_URI]=="/?currency=USD"){
?>

 

you can see ive had to add the currency querystrings to the address... id like to be able to tell it if it begins with index.php as well it wouldnt work with the first oscsid on the first click...

 

any ideas?

 

thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...