![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Mar 2001
Location: Florida
Posts: 6,138
|
PHP question...
Forgive me if this sounds unprogrammerly but I'm trying to edit a php template I have. So the question is..
How do I echo a variable in my url string. For example i have... http://www.foo.com/foo.php?category=apples I want to display.. Category: Apples ..on the top of the output page (based on what category is displayed in the URL). Any help would be appreciated. Thanks. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
WINNING!
Industry Role:
Join Date: Oct 2002
Posts: 14,579
|
buy one one Juicylinks books
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Join Date: Mar 2001
Location: Florida
Posts: 6,138
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Mar 2003
Location: Los Angeles, CA USA
Posts: 204
|
print $_GET['category'];
__________________
icq5708193 aptgp III -- Build a Blog, an RSS feed, a text TGP, and a thumb TGP all from one installation. Own Comus or AutoGallery? Have APTGP III Installed free for 30 days; no obligations. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Nov 2001
Location: MTL
Posts: 5,060
|
Quote:
print $category; might do it also...
__________________
mmm my sig was too big... no more cool animation ![]() but hey still! need php? ICQ: 94586959 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Mar 2003
Location: Los Angeles, CA USA
Posts: 204
|
If he has register_globals on...but who in the hell uses that shit ass setting? heh
__________________
icq5708193 aptgp III -- Build a Blog, an RSS feed, a text TGP, and a thumb TGP all from one installation. Own Comus or AutoGallery? Have APTGP III Installed free for 30 days; no obligations. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Sep 2002
Location: UKStyle.UKFlow
Posts: 1,767
|
why do peeps not like register_globals?
Can someone explain to me. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Mar 2001
Location: Florida
Posts: 6,138
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Aug 2001
Posts: 7,817
|
Hey PornJester,
<?=$category;?> should work for you, otherwise <?=$_GET['category'];?> would work. Cheers, Matt |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Registered User
Join Date: Sep 2002
Location: California
Posts: 2,021
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
MFBA
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
|
i would do
$fruit = $HTTP_GET_VARS['category']; and then just use $fruit anywhere i would need it. that is if category wasnt working for whatever reason. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Join Date: Mar 2003
Posts: 365
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Registered User
Join Date: Jun 2002
Location: Inter-home
Posts: 11
|
Quote:
__________________
http://www.greathotpanty.com/ Check it :-) |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Registered User
Join Date: Oct 2001
Posts: 31
|
http://www.something.com?user=<? "$user" ?>
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
CjOverkill
Industry Role:
Join Date: Apr 2003
Location: Woldwide
Posts: 1,328
|
Quote:
register globals or not, if the programmer is not good enought you get hacked.
__________________
CjOverkill Traffic Trading Script Free, secure and fast traffic trading script. Get your copy now ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |