Dynamic content with PHP?

  • Thread starter Thread starter Robert Robert Robert
  • Start date Start date
R

Robert Robert Robert

Guest
I'm making a website that displays available courses for a consultancy.
Down the side is a series of buttons with the names of the courses on, and I want, when one of the buttons is clicked, some corresponding information to appear in another div.

I've googled dynamic content with PHP but the same irrelevant example comes up. Can anyone help a PHP beginner?
 
that's NOT dynamic content. It's just different pages and you need php only for templating. If you want not to reload the page, then you have to use javascript and replace the HTML in that div, but in this case all the possible replacements have to be predownloaded or you'd need to use ajax.

For the javascript way, try JQuery, which is a nice and easy javascript framework that makes this things easy to do.
 
Back
Top