views:

60

answers:

1

The website viewer would be at page A, click a link that sends then to page B, but I want them to return to page A without them noticing.

When they click the link it changes the layout the viewer is browsing the site with, so the redirection code shouldn't erase or undo the cookies or whatever are stored with the link click. Thanks!

Edit: Here's what I'm doing. I have a page called setskin.php that has php code that takes header and footer codes for different layouts and applies them. I don't know how to show code without it going crazy, so there's a screenshot of it here:

http://figmint.uuuq.com/Picture%202.png

I want to change my website so that in a sidebar there will be the same setskin options (so it will be on every page). I was fiddling and managed to make it so when you click the link for the skin you want it changes the skin, but then you end up at the setskin.php page, which I don't want. I was looking for a way to make it so it sends you to the setskin.php page (since I couldn't see how to change that) and then back to where you came from.

A: 

You should use AJAX. That way you can do whatever processing is needed behind the scenes with zero impact on the user.

Sam