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 05-09-2003, 02:39 PM   #1
sowned
Registered User
 
Join Date: Dec 2002
Location: Edmonton, Alberta
Posts: 33
Question about PHP

Hello.

How would I go about using PHP to make hosted galleries with codes in it? For example >> http://URL.com?referralID=12345, so that all the links on this page also include the referralID=12345 on the end of it?

Thanks.
__________________
ICQ: 11913439
sowned is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 02:55 PM   #2
Calvinguy
Confirmed User
 
Join Date: Oct 2002
Location: European Union
Posts: 1,752
The manual is your friend
Calvinguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:32 PM   #3
gornyhuy
Chafed.
 
gornyhuy's Avatar
 
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
RTFM
__________________

icq:159548293
gornyhuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:35 PM   #4
jasonir
Confirmed User
 
Join Date: Aug 2002
Location: Toro'no
Posts: 1,887
<a href=http://trageturl.com/page.php?referralID="<? echo $referralID;
?>">
__________________
ICQ: 61689996
jasonir is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:54 PM   #5
h0st
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Finland
Posts: 1,216
It is not possible with php. try html instead
__________________
Did you say Pimp My Sexlife?
h0st is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:56 PM   #6
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
Quote:
Originally posted by jasonir
<a href=http://trageturl.com/page.php?referralID="<? echo $referralID;
?>">
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:57 PM   #7
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
Even better is using a template system and making it all dynamic ..,.. but thas more involved
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 04:48 PM   #8
modF
Confirmed User
 
Join Date: Aug 2002
Posts: 1,888
Quote:
Originally posted by jasonir
<a href=http://trageturl.com/page.php?referralID="<? echo $referralID;
?>">

if register_globals is off (as it should be) you will need to pull $referralID from the GET string like this:

PHP Code:
$referralID=$_GET['referralID']; 
__________________

I do things
skype:themodF
modF is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 04:53 PM   #9
Nysus
Confirmed User
 
Industry Role:
Join Date: Aug 2001
Posts: 7,817
Quote:
Originally posted by modF
if register_globals is off (as it should be) ...
Care to state why you say it should be?..

Cheers,
Matt
Nysus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 05:16 PM   #10
vending_machine
Confirmed User
 
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
Quote:
Originally posted by Nysus


Care to state why you say it should be?..

Cheers,
Matt
Security reasons so you can protect your variables. Otherwise people can set malicious variables and do bad stuff. Mkaye?
vending_machine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 05:19 PM   #11
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
Quote:
Originally posted by Nysus


Care to state why you say it should be?..

Cheers,
Matt
well it shouldnt be, but its better coding using the $GET variable...

and the above code should be:

PHP Code:
<a href="http://trageturl.com/page.php?referralID=<?php echo $referralID?>">
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 06:00 PM   #12
SicChild
Confirmed User
 
Join Date: Mar 2003
Posts: 365
You could also run some regex on it if you don't want to go through all the links manually. ;)
SicChild 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.