Forum Moderators: coopster

Message Too Old, No Replies

Framing data with PHP

         

hexdj

8:19 am on Aug 31, 2005 (gmt 0)

10+ Year Member



I have a page that has a menu, header, etc. and I don't want those elements to be loaded every time that a link is clicked on. Can I do something with PHP for the content of a single DIV to change whenever a link is clicked? and still be able to have that page load its header and menu when it's loaded on its own? say when linked by a search engine (spidered)?

Thanks

ergophobe

4:21 pm on Aug 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This is not a PHP question per se. PHP is server-side and you are asking about a client-side behavior (loading only part of a page). PHP has no control over what happens client side.

The easiest way to do what you want is with frames or iframes. Keep in mind, however, that your headers and all that are probably only a couple KB and the browser should handle caching the images, css files, js files and so forth. So in reality, the visitor is not typically reloading the bulk of it with every click.