Jump to content

Recommended Posts

Posted

I'm not sure what it's called, but how do I get an existing page to load on another page.

 

I am making a photo gallery and I have 8 categories. I have all the html pages created for the: table of contents page and each individual photo page. ( I made it with a Jalbum)

 

What I want to do is have each category open BELOW the table of content page instead of linking to a separate page.

 

I guess I could copy and paste the table of contents page code above each photo page it links to but that seems incorrect.

 

Presently the table of contents page is house inside an iframe on my photo_video.php page.

 

If I have to I will make the photo page live to get my point across. Right now I'm tweaking the designs css to my needs and trying to get everything to fit

 

Thanks

Ant

Posted

You mention an iframe which loads another page on the main page or pages but you say the table of contents page is house inside an iframe on my photo_video.php page. Could you do the opposite, have a table of contents and a series of links which open every photo page in the same iframe below the table? See itme 2 here:-

http://www.wickham43.net/framesets.php

and the example using target="..." to load the iframe from the links.

 

You could do the reverse, have a series of pages for each individual photo page and then use PHP "includes" to load the same table or anything else that repeats on every page. The repeating code is put in a separate "include" file and inserted into every photo page with PHP code.

See http://www.wickham43.net/serversideincludes.shtml first para and item 2.

Posted

You mention an iframe which loads another page on the main page or pages but you say the table of contents page is house inside an iframe on my photo_video.php page. Could you do the opposite, have a table of contents and a series of links which open every photo page in the same iframe below the table? See itme 2 here:-

http://www.wickham43.net/framesets.php

and the example using target="..." to load the iframe from the links.

 

You could do the reverse, have a series of pages for each individual photo page and then use PHP "includes" to load the same table or anything else that repeats on every page. The repeating code is put in a separate "include" file and inserted into every photo page with PHP code.

See http://www.wickham43.net/serversideincludes.shtml first para and item 2.

 

 

Thanks Wickham.

 

I never thought about that. I should have used the INCLUDE like I did in my other areas.

For now I just placed the table of contents (links) on ever page.

 

I just completed the site. Unfortunately my server I ASSUME is not setup to recognize index.php as my homepage. Now I need to contact VERIO and ask them what I have to do to accomplish that. I searched on the subject but got a lot of answers which were beyond me. apache, installing php4 etc.

 

Thanks

Ant

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...