Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

$_SERVER['REQUEST_URI'];


tedbooks

Recommended Posts

hello if you can take a moment and help me with this i want the page to link back to itself with the variable style

i put the following code in header.php and it works for me every where except when i am at www.mysite.com . here

 $selector= $_SERVER['REQUEST_URI']; 

$mystyle=''.
              '<a href="' . tep_href_link($selector, 'style=1011', 'NONSSL') . '"> Large Fonts |</A>' .
        '<a href="' . tep_href_link($selector, 'style=1001', 'NONSSL') . '"> Default |</A>';
      

echo $mystyle; ?></td></tr></table>]

 

when i click the link when i am on http:mysite.com

i get

htttp://mysite.com//style/1001

which gives me 404 error

i need to have

htttp:/index.php/mysite.com//style/1001

if you can help me do this

thx

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...