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 Mark Forums Read
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 12-13-2011, 06:22 AM   #1
v4 media
Confirmed User
 
v4 media's Avatar
 
Industry Role:
Join Date: Feb 2005
Location: Spain
Posts: 2,934
Simple coding question

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
v4 media is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-13-2011, 06:25 AM   #2
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
Sounds like you need to hire an actual webmaster.
__________________
I like pie.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-13-2011, 06:26 AM   #3
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,332
get the t variable

Code:
<?php

$thumb = $_GET['t'];
echo $thumb . '.jpg';

?>
or whatever path, etc.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-13-2011, 06:33 AM   #4
v4 media
Confirmed User
 
v4 media's Avatar
 
Industry Role:
Join Date: Feb 2005
Location: Spain
Posts: 2,934
Quote:
Originally Posted by fris View Post
get the t variable

Code:
<?php

$thumb = $_GET['t'];
echo $thumb . '.jpg';

?>
or whatever path, etc.
Thank you very much.




Quote:
Originally Posted by Babaganoosh View Post
Sounds like you need to hire an actual webmaster.
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.
v4 media is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-13-2011, 06:35 AM   #5
fris
Too lazy to set a custom title
 
fris's Avatar
 
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
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-13-2011, 06:36 AM   #6
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
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.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-13-2011, 06:39 AM   #7
v4 media
Confirmed User
 
v4 media's Avatar
 
Industry Role:
Join Date: Feb 2005
Location: Spain
Posts: 2,934
Quote:
Originally Posted by Babaganoosh View Post
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.
Who pissed on your cornflakes this morning?
v4 media is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-13-2011, 06:48 AM   #8
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
Quote:
Originally Posted by v4 media View Post
Who pissed on your cornflakes this morning?
Nobody, I just hate incompetence.
__________________
I like pie.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-13-2011, 06:57 AM   #9
Zoxxa
Confirmed User
 
Zoxxa's Avatar
 
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!
Zoxxa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-13-2011, 07:23 AM   #10
v4 media
Confirmed User
 
v4 media's Avatar
 
Industry Role:
Join Date: Feb 2005
Location: Spain
Posts: 2,934
Quote:
Originally Posted by Zoxxa View Post
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;

?>
thanks, reading up now.
v4 media 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
Thread Tools



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.