Forums

[resolved] If statement regarding the page you are on... (3 posts)

  1. mitchrenton
    Member
    Posted 2 years ago #

    Hey guys I'm trying to create an if statement that basically say "If you are on the home page do this, else if you are on the about page do this, else if you are on the gallery page do this etc.

    Is there a way to put this into php? I'm a bit of a php newbie so would love some advice on this one, thanks guys.

    Mitch

  2. mitchrenton
    Member
    Posted 2 years ago #

    Ok Guys, I've had a little crack at it with disastrous results!

    Here is the code I'm using http://pastebin.com/m6ec65372

    Is it totally wrong or am I on the right track?

  3. mitchrenton
    Member
    Posted 2 years ago #

    That code worked, ignore me!

Topic Closed

This topic has been closed to new replies.

About this Topic