Current location: Hot Scripts Forums » Programming Languages » PHP » Image display based on URL

Image display based on URL

 
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-09-04, 07:26 AM
rjwebgraphix rjwebgraphix is offline
Newbie Coder
 
Join Date: Sep 2004
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Question Image display based on URL

I'd like to display an image based on the url in a similar fashion that you can display html files based on the address bar.

Example:

http://www.anysite.com/frameset.php?page=home

Then breaking the PHP down to it's simplest form in page frameset.php I have the following code.

<?php
include("$page.html");
?>

in the same respect I would like to change an image in frameset.php based on the url, so it would look something like this.

http://www.anysite.com/frameset.php?...picture=mypic1

I can do this by creating a separate html, adding the pic there, then using the same as the above to display that html, but for anything above a few images, it's kinda redundant. I figure the images are already there and I shouldn't need a separate html file for each image I want to display, so looking looking for it's simplest form to pass the variable to the IMG tag.

Thanks,
RJ
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do you display an image in <title> ?? krmoon PHP 3 06-15-04 02:55 AM
javascript redirection based on referring URL andyinorbit2000 Script Requests 1 05-31-04 02:56 AM
Display a dynamic image Bonzo PHP 1 04-28-04 05:05 AM
Declared Functions skipper23 PHP 4 12-17-03 11:06 AM
index page not showing up skipper23 PHP 3 12-15-03 02:10 PM


All times are GMT -5. The time now is 09:46 PM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.