June 15th, 2000, 03:12 PM
I have a web page called backgrounds that has about 73 images to choose from. When you click on an image, it takes you to the layouts page. There are 10 to choose from and when you click on one of those I want a page that shows the two choices like this:
Your background is <image here> and your layout is <image here>.
But I do not want to make over 800 different web pages for all variations. Does ANYONE know where I can get a script that does this, the easiest or most effective language to use, or any other usefull information concerning this form? PLEASE REPLY!!
Either reply here or e-mail at Ken72482@aol.com
(I know AOHELL sucks but it's not mine)
June 15th, 2000, 09:36 PM
June 16th, 2000, 09:57 AM
I have my own server and have access to PHP, mySQL, and other stuff, however, I'm not sure what ASP is, but I think I could use that too.
June 16th, 2000, 10:27 PM
OK - PHP -a simple way not utilising the DB.
in (eg) images.php - make every thumbnail a link - the link constructed so:
<a href="backgrounds.php3?img=img1"><img src="img1.gif" border=0 etc></a>
this takes you to backgrounds.php3 where you have your list of background images - again links ie:
<a href="show.php3?img=<?php echo $img;?>&back=back1"><img src="back1.jpg"></a> - when clicked you go to show.php3 - you now have the image name and background name in the url, so we do:
you chose this image:<img src="<?php echo $img;?>.gif" border=0 etc><br>
you chose this background:<img src="<?php echo $back;?>.jpg">
you could also use the background chosen as the background by <body background="<?php echo $back;?>.jpg">
this is assuming that your image file types are constant & that the images are all the same size, differences can be acounted for - but as I said this is a simple example.
Having your image data (not the images themselves) in a database would really make life easier for displaying the links on pages 1 & 2 - (or even in an array)
It will also help to name your images logically ie img1.gif,img2.gif etc - so if you had 70 images - images.php3 would look like this:
<tr><td><a href="backgrounds.php3?img=img<?php echo $x;?>.gif"><img src="img<?php echo $x;?>.gif"></a></td></tr>
<?php } ?>
thus creating 70 image ands links in go,
Hope this gets you under way,