#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    MO, US
    Posts
    119
    Rep Power
    15
    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)

    THANKS!

    -Ken
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    Hi Ken - do you have access to PHP or ASP ? or do you have to work in javascript? in can be done in JavaScript - its just easier with server-side - let us know.

    Simon

    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    MO, US
    Posts
    119
    Rep Power
    15
    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.
  6. #4
  7. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    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:

    <html etc>

    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:

    <table>
    <?php for($x=1;$x<=70;$x++){
    <tr><td><a href="backgrounds.php3?img=img<?php echo $x;?>.gif"><img src="img<?php echo $x;?>.gif"></a></td></tr>
    <?php } ?>
    </table>

    thus creating 70 image ands links in go,

    Hope this gets you under way,

    Simon


    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL

IMN logo majestic logo threadwatch logo seochat tools logo