Need some PHP HELP!!!! PHP GURUS STEP PLS INSIDE
Hi guys!,
I need some help with PHP (i'm not a php expert, I barely know a few concepts which help me get my stuff going)....... so please don't post BS!
I'm working on a landing page and I need to pass a variable 2 pages down using PHP, for instance:
Quote:
PAGE1:
//OVKEY is a string that I'll get from a page....
<?php
if (is_null($ovkey = $_GET['OVKEY'])) $ovkey='Straight Visit';
?>
//NOW THE LINK WHICH WILL PASS THE Variable 'OVKEY' + the variable 'ad'
page2.php?id=OVKEY=<?php echo $ovkey; ?>&ad=<?php echo $ad; ?>
/* This will effectively transfer the variables 'OVKEY' and 'ad' to page2.php now I need page2.php to send these 2 variables plus a third to page3.php , I was thinking of using the same method on page 1 to GET these values such as: */
$ad = htmlspecialchars($_GET ['ad'];
$ovkey = htmlspecialchars($_GET['OVKEY']);
// And then passing it onto the third page like this:
page3.php?id=additionalvariable=VARIABLE3&OVKEY=<? php echo $ovkey; ?>&ad=<?php echo $ad; ?>
|
I'm not quite sure about the way the second page (page2.php) gets the 'ovkey' variable and then sends it to the third page.... if I do it this way will the second page store this value and pass it on through the URL to the third page??? (page3.php)
|