Passing Variables

Hi all,

I've been doing quite a bit of work to one of my Dolphin sites, I'm not sure if anyone is able to help but I'd be much obliged if anyone has a solution to the following problem:

I want to pass a few variables in the URL string from the join button on the top navigation bar of the home page to the join page. I've changed the link to the join page via the navigation builder in the admin area to this:

join.php?gen=<?php echo $gen; ?>&st=<?php echo $st;?>&or=<?php echo $or;?>

The problem is that the PHP will not parse so the variables are not added to the URL string when you click on the link, it just carries the exact string above over to the join page.

I'd really appreciate it if anyone has any ideas.

All the best,

Chris.

Quote · 12 Apr 2010

Hello!

U can't do it via mentioned way. It will be more easy to add exact values and their processing in join.php code.

Regards

Quote · 12 Apr 2010

Hello!

U can't do it via mentioned way. It will be more easy to add exact values and their processing in join.php code.

Regards

Hi Leonid

Thanks for your reply, I thought it may be the case that the way I'm trying to do it would not work. I need the to be able to track these variables throughout the site so that I can use them to deliver targeted information to the user based on their location and their gender. Should I be looking to extract the variables from the incoming link when a user hits my homepage, then save them in a session and then write a script to access the stored values on what ever page they are needed? Hope that makes sense, my PHP skills are limited!

Chris.

Quote · 12 Apr 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.