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 quick help for PHP URGENT ! (https://gfy.com/showthread.php?t=908414)

SABAI 06-02-2009 03:21 AM

Need quick help for PHP URGENT !
 
ok here is what i'm looking for :


i need the correct syntax for implementing my free hosted galleries for my affiliates .... i had it working up until i had a domain hijacked and all the files gone of the face of the earth .

affiliate enters his ccbill, verotel or any other biller's reseller ID into a simple GET or POST form , it then shows all the galleries listed like http://gals.mypaysite.com/gal01/index.php?=REFID
Code:

<a href="http://gals.footmaniac.com/Gal01/index.php?id=<?php print("$REFID");?>">http://gals.footmaniac.com/Gal01/index.php?id=<?php print("$REFID");?></a>
and within the index.PHP of each gallery i need a call for the REFID to be included on every link to my paysite like
Code:

<a href="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=925808-0000&PA=<?php print("$REFID");?>
&HTML=http://www.footmaniac.com/main.html">

of course the verotel galleries will be vindex.php, segpay galleries will be sindex.php etc etc linking to the vmain.html and tour billing with verotel , the smain.html and tour billing through segpay and so on .... ( got 6 billing companies : ccbill, segpay, epoch,verotel, zombaio and gxbill )

i know i'm very close but i can't get it to work as i know shit about programing :helpme

SilentSound 06-02-2009 05:24 AM

Hi,

kinda more a Q&A topic, but here goes...

if I understand your problem correctly, you passed variables aren't appearing in the code. First, if you want that code to work, you need to have Register Global Variables PHP setting on, which is a security risk, I don't recommend it.

In your PHP.INI make sure you have

Code:

register_globals = off
That's done, now the code:

Code:

<a href="http://gals.footmaniac.com/Gal01/index.php?id=<?php echo $_REQUEST['REFID']; ?>">http://gals.footmaniac.com/Gal01/index.php?id=<?php echo $_REQUEST['REFID']; ?></a>
$_REQUEST is needed, as all variables parsed from GET/POST input will be there instead of having them automatically appear.

Next, in the index.php files:

Code:

<a href="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=925808-0000&PA=<?php echo $_REQUEST['id']; ?>
&HTML=http://www.footmaniac.com/main.html">

Because you linked with an id=... in the GET request, you need to use that in the index.php pages.

Hope that helped.

SABAI 06-02-2009 06:36 AM

YAYEEEEEEEEEEE its working , thanks a bunch man ..... i would have never thought of the $_REQUEST instead of $_GET or $_POST which were returning a whole bunch of useless arrays ...

SilentSound 06-02-2009 06:40 AM

I'm not sure why they would be returning useless stuff but hey.. it works!

Voodoo 06-02-2009 07:28 AM

useless arrays are like pointless classes.

SABAI 06-02-2009 12:11 PM

i meant useless for what i intended to do ;-)


All times are GMT -7. The time now is 01:23 AM.

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