How to pass variables in URL and page?

trinity1643

New Member
My code in index.php:\[code\]<?php$keyword = ($_GET['keyword']);$adid = $_GET['adid'];header("Location: http://www.tracking.com/base.php?asdf&keyword=&ad=" .$keyword .$adid);?>\[/code\]The tracking link is supposed to end with: \[code\]&keyword={keyword}&ad={AdId}\[/code\]I need to pass the keyword and AdId through the URL onto the landing page which then redirects and pass both variables to the tracking link.This is the URL I was trying: \[code\]www.example.com/?keyword={keyword}&ad={AdId}\[/code\]I don't think I can test if my format above is correct unless I run search traffic to it. I need help on getting the codes right and getting the URL to pass them correctly.Edit: Did I format the URL to pass the variables correctly?
 
Back
Top