GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Need some PHP HELP!!!! PHP GURUS STEP PLS INSIDE (https://gfy.com/showthread.php?t=780270)

qxm 10-29-2007 04:58 AM

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)

Oracle Porn 10-29-2007 05:00 AM

yes

congrats to the winners!

qxm 10-29-2007 05:05 AM

Quote:

Originally Posted by Oracle Porn (Post 13301829)
yes

congrats to the winners!

yes.....wha?, will it work? :stoned:question:helpme

maggie2007 10-29-2007 05:05 AM

use $_SESSION array if pages 1,2,3 at same server or use $_GET if not at one
it's simple :) no gurus needed :)

StuartD 10-29-2007 05:15 AM

?id=OVKEY=<?php echo $ovkey; ?>

should be

?OVKEY=<?php echo $ovkey; ?>

qxm 10-29-2007 05:27 AM

Quote:

Originally Posted by StuartD (Post 13301861)
?id=OVKEY=<?php echo $ovkey; ?>

should be

?OVKEY=<?php echo $ovkey; ?>

yeahh.. I realized that 'id' had nothing to do with it after I posted the info.....thanks though :thumbsup

qxm 10-29-2007 05:28 AM

Quote:

Originally Posted by maggie2007 (Post 13301839)
use $_SESSION array if pages 1,2,3 at same server or use $_GET if not at one
it's simple :) no gurus needed :)

sweet ... I'll give it a go and see what happens...:thumbsup

maggie2007 10-29-2007 06:18 PM

Quote:

Originally Posted by qxm (Post 13301888)
sweet ... I'll give it a go and see what happens...:thumbsup

test and write here :) :)


All times are GMT -7. The time now is 04:42 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123