PDA

View Full Version : Updating Just Content Using PHP


Nick
2005.11.17, 01:43 AM
Is there a way using PHP to just update the content of my page when a user clicks a link? I'm just thinking it would look nicer for my page to not reload the header everytime the user changes pages. Is it possible? I've tried a bunch of stuff with include() but nothing does what I'm looking for. Any ideas?

Steven
2005.11.17, 10:14 AM
You'd have to use something along the lines of frames to do that - PHP is a server-side language and the way browsers are architected it can't really push parts of a page back out to the browser.

MacAnthony
2005.11.17, 10:51 AM
That's exactly what AJAX is meant to do which is done with javascript.

The sarissa project has a nice library for doing this
http://sarissa.sf.net