Passing a Parameter from Joomla Page to Joomla Page

Giarc86

Expert Member
Joined
May 28, 2008
Messages
1,243
Reaction score
4
Hi all,

I am just wondering if it's possible to pass a parameter in Joomla from page to page. I am not a programmer so not sure how or if this can work.

Basically we have Google ads and when a person clicks on it it will include a parameter in the URL.
www.mysite.com/?parameter=campaign for example.

Is there a way to pass that parameter from page to page as the user browses the site?
An extension that will keep the parameter there?

I have Googled this and looked through some extensions but I am not sure what would actually do this or if it needs some code throughout the site.

Thanks in advance for any help.
 
Okay thanks, so something along the lines of?

PHP:
<?php
session_start();
$_SESSION['parameter']=(//not sure what goes here);
?>

Is this correct?
How would it capture the session Id "campaign"?

Thanks
 
Okay thanks, so something along the lines of?

PHP:
<?php
session_start();
$_SESSION['parameter']=(//not sure what goes here);
?>

Is this correct?
How would it capture the session Id "campaign"?

Thanks

<?php
session_start();
$_SESSION['parameter']=$_GET['parameter'];
?>
but you might need a lil more than that ..
just make sure you're not using a session variable that Joomla uses, so prefix yours with something..
 
Top
Sign up to the MyBroadband newsletter
X