Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-29-2007, 04:58 AM   #1
qxm
Confirmed User
 
Join Date: Jul 2006
Location: NoHo
Posts: 5,970
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)
__________________

ICQ: 266990876
qxm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2007, 05:00 AM   #2
Oracle Porn
Affiliate
 
Oracle Porn's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Icq: 94-399-723
Posts: 24,433
yes

congrats to the winners!
__________________


Oracle Porn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2007, 05:05 AM   #3
qxm
Confirmed User
 
Join Date: Jul 2006
Location: NoHo
Posts: 5,970
Quote:
Originally Posted by Oracle Porn View Post
yes

congrats to the winners!
yes.....wha?, will it work?
__________________

ICQ: 266990876
qxm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2007, 05:05 AM   #4
maggie2007
Confirmed User
 
Industry Role:
Join Date: Jan 2007
Posts: 247
use $_SESSION array if pages 1,2,3 at same server or use $_GET if not at one
it's simple no gurus needed
maggie2007 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2007, 05:15 AM   #5
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
?id=OVKEY=<?php echo $ovkey; ?>

should be

?OVKEY=<?php echo $ovkey; ?>
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2007, 05:27 AM   #6
qxm
Confirmed User
 
Join Date: Jul 2006
Location: NoHo
Posts: 5,970
Quote:
Originally Posted by StuartD View Post
?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
__________________

ICQ: 266990876
qxm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2007, 05:28 AM   #7
qxm
Confirmed User
 
Join Date: Jul 2006
Location: NoHo
Posts: 5,970
Quote:
Originally Posted by maggie2007 View Post
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...
__________________

ICQ: 266990876
qxm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2007, 06:18 PM   #8
maggie2007
Confirmed User
 
Industry Role:
Join Date: Jan 2007
Posts: 247
Quote:
Originally Posted by qxm View Post
sweet ... I'll give it a go and see what happens...
test and write here
maggie2007 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.