Forum Moderators: mack
Static pages are normally just plain html, and don't change depending on user input.
Dynamic pages usually employ some sort of script (either server-side like php or client-side like javascript).
I think Dynamic often refers to pages which have been generated from a database which would use server-side scripting.
Pages which use javascript could also be described as dynamic, as they can change once the page has loaded, and respond to users entering data or clicking buttons.
Is one better than the other?
Hope this is helpful.
Helen.
Dynamic pages usually employ some sort of script (either server-side like php or client-side like javascript).I think Dynamic often refers to pages which have been generated from a database which would use server-side scripting.
Pages which use javascript could also be described as dynamic, as they can change once the page has loaded, and respond to users entering data or clicking buttons.
Good answer... just to clarify;
Dynamic pages refer to any use of the technology - whether it's in a high-end database-driven applications or just being used for pure static pages or even a static HTML alternative (to take advantage of includes for example).
Javascript pages aren't true dynamic pages in the same sense as say PHP etc. because they are running on the client-side rather than the server-side and so you lose a few of the benefits of server-side code. Also technically speaking any sort of client-side scripts which modifies the page at run-time falls under the heading of DHTML (Dynamic HTML) rather than dynamic pages.
Finally it's also worth noting that if they are used in a certain ways you can't tell dynamic pages apart from static pages, so you get all the benefits of appearing to be static as well as the benefits of being dynamic.
- Tony