Jump to content

technique to open page on page


Ant

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...