Doing this with string replaces is sort of ugly. I'd recommend either
a) recode the entire site using GET requests so that you can keep the collection in the url and easily get back to it from anywhere
b) store the collection name in a $_SESSION variable and link back to it that way.
Complicated Page Referral Needs
Moderators: egami, macek, gesf
It depends where the collection name is coming from, but it's as simple as doing:
Then to call the variable back again just do something like
Code: Select all
session_start();
$_SESSION['collection'] = some variable holding your collection name;
Code: Select all
session_start();
$url = 'http://ringsunique.com/openquote/?ring='.$_SESSION['collection'];