selective redirect

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cmdo
Forum Newbie
Posts: 13
Joined: Wed Nov 30, 2011 2:04 pm

selective redirect

Post by cmdo »

Hello,
What I'm trying to do is the following:

If I visit team.php from index.php and when I click "back page" it takes me to index.php

If I visit team.php from home.php and when I click "back page" it takes me to home.php


Is there a way to do this?
maxx99
Forum Contributor
Posts: 142
Joined: Mon Nov 21, 2011 3:40 am

Re: selective redirect

Post by maxx99 »

Isn't it already working like this?
cmdo
Forum Newbie
Posts: 13
Joined: Wed Nov 30, 2011 2:04 pm

Re: selective redirect

Post by cmdo »

I have no idea how to do this :s
maxx99
Forum Contributor
Posts: 142
Joined: Mon Nov 21, 2011 3:40 am

Re: selective redirect

Post by maxx99 »

Code: Select all

<form>
 <input type="button" value="back page" 
 onClick="javascript: history.go(-1)">
 </form>
Is this what you wanted?
Post Reply