![]() |
![]() |
![]() |
||||
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
Industry Role:
Join Date: Feb 2005
Location: Spain
Posts: 2,934
|
![]() If I want to copy a thumb over to a new page, say someone clicks on thumb 01 and this is the url 'join.htm?t=01' I want the 01 thumb to show on the join page.
I would imagine it's simple but I don't even know what I need to search for to actually find the code. Anyone want to tell me what I'm looking for, ![]() thanks |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
Sounds like you need to hire an actual webmaster.
__________________
I like pie. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,332
|
get the t variable
Code:
<?php $thumb = $_GET['t']; echo $thumb . '.jpg'; ?>
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Industry Role:
Join Date: Feb 2005
Location: Spain
Posts: 2,934
|
Quote:
Everything else was done just needed to solve that, And within 4 minutes of posting it was. So I'll put the webmaster hiring on hold, thanks for your wise words though. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,332
|
might wann add a trim to the $_GET and also check if its set so you dont get some fool trying to inject shit.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
You're lucky there are folks willing to help out the lazy and incompetent. I'm guessing you'll be around as long as they're willing to think for you.
__________________
I like pie. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Feb 2005
Location: Spain
Posts: 2,934
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
Nobody, I just hate incompetence.
__________________
I like pie. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Feb 2011
Location: Ontario, Canada
Posts: 1,026
|
Just to build off Fris' code and recommendation.
Code:
<?php // Only allow integar values $thumb = preg_replace('/[^0-9]/', '', $_GET['t']) . '.jpg'; // If no thumb set, use default thumb if(empty($thumb)) { $thumb = 'default.jpg'; } // Output thumb echo $thumb; ?>
__________________
[email protected] ICQ: 269486444 ZoxEmbedTube - Build unlimited "fake" tubes with this easy 100% unencoded CMS! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Industry Role:
Join Date: Feb 2005
Location: Spain
Posts: 2,934
|
thanks, reading up now.
|
![]() |
![]() ![]() ![]() ![]() ![]() |