• Hi everyone!

    I am currently working on a portfolio for an exam.
    I have created different colorsheets for each section. The project section is pink and the “university journal” is orange.

    Some posts will appear in both projects and univerity journal.
    I would like the colorsheet of the post matching from what section the user came.
    Ie. if the user came from projects the post will be pink.

    I’m pretty sure there some nifty php trick to do this, but I just don’t know it and I’m not sure what I to search for?

    Hopefully one of you can help me ??

Viewing 1 replies (of 1 total)
  • You can either check the referrer or set a variable that you pass onto the receiving page either via $_GET or $_POST …

    That would be the most common way …

    It could be something as simple as appending the referring link with an additional $_GET parameter..

    <a href="some_link_to_some_page/somepage.php?somevar=red">
    <a href="some_link_to_some_page/somepage.php?somevar=blue">

    .. it really depends how you want to do it..

    Checking the referrer may be better suited, that depends on your needs entirely or which you prefer..

Viewing 1 replies (of 1 total)
  • The topic ‘Alternativ post design depending on “entrance”’ is closed to new replies.