Hi, I'm trying to change a menu (currently an include) based on the referring URL.
Does anyone know of any examples? I have found some examples where the user clicks a button to change styles but this is hardly useful for my purposes.

I have got the cobranded logo thingy to work:

where the logo appears:

<img src="<? echo GetCoBrandLogo(); ?>" width="344" height="97"> and,

in the header:

<?php include_once('cobrand_logo.php'); blah blah...and the link I give to our resellers is something like: /gnew/fl2.php?channel=TFA

.....but I have not got a clue how to get my page to select from menu1.php if the link has come from reseller1 or menu2.php from reseller2.

Any help appreciated or a tutoria site for this sort of thing would be greatly appreciated.

cheers Ernie

    Are you wanting to do it without reloading the page using javascript or using php with a page reload?

      Thanks for the reply RowanParker. I really wanted to give a reseller a link similar to the one that handles the resellers logo inclusion:
      oursite/gnew/fl2.php?channel=TFA which grabs the appropriate logo for the client TFA, but to add some code [somehow] to "...fl2.php?channel=TFA" to also say "..grab menux instead of the default menu". And like the resellers logo appearing on all pages so to menux.

      I really am new and I not refer to myself as a programmer let alone a scripting hack so I hope I've made myself clear.

      Thanks Ernie

        Write a Reply...