if else for previous page

4 posts by 2 authors in: Forums > CMS Builder
Last Post: July 21, 2009   (RSS)

By eduran582 - July 18, 2009

How does one go about creating a "If, else" statement to show specific links based on the page that was displayed before the current page.

Here's what I'm trying to do:
If I arrived at the page I'm on now from "Page1.php" then show a url to return to page1.php; else return to adifferent.htm page.

Make sense? [crazy]

TIA!

Re: [eduran582] if else for previous page

By ross - July 20, 2009

Hi there

Thanks for posting!

I don't quite get what you are aiming for here. The if else should end up being quite straight forward once I've understood what you need.

Can you go over it again for me? Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [eduran582] if else for previous page

By ross - July 21, 2009

Hi Eric

Thanks for clearing that one up. I think going with the two separate pages is going to be the easier way to go on this one.

Having one page determine if the person viewing it is an admin or regular user would require a bunch of different things happening and it would get quite complex pretty quickly.

Keep me up to date though. If you end up absolutely needing something setup, we'll start going over the different options.

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/