|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
||||
|
||||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Multiple form help!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|