|
| |||||
| Home | Reviews | Tools | Forums | FAQs | Find Service | ISP News | Maps | About |
how-to block ads |
What is it? In programming, static and dynamic are terms used to describe content. Static content is content that is preset and doesn't change. Dynamic content is the exact opposite; it changes. Static Example Code: <font face="Georgia, serif">Welcome User</font>quote: Dynamic Example (PHP) Code: <?Displays on page: quote: Just note that it will display welcome and (whatever the value of $user is). Why would I want to use dynamic content? There are many reasons that you might want to use dynamic content. One of the biggest ones is for personalizing. It seems a lot nicer when you go to a site and it says "welcome (your name)", rather than just "welcome user". You could also use it to display local weather, news, etc. for users based on their zip code. Dynamic content can also make a site easier to maintain. How Do I add dynamic content to my site? A very common web programming language for displaying dynamic content is PHP. This is very simple example of how to do this in PHP (note that PHP must be installed on your web server): First, lets declare our variable $user in our header. <html>
by Entelligence | |||||
| Saturday, 11-Feb 20:19:14 | Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo over 12.5 years online! © 1999-2012 dslreports.com. |