What is Dynamic Webpage ?

 What is Dynamic Webpage?


Today's web applications are a collection of both static and dynamic web pages. A static website consists of simple HTML pages hosted on a web server and supporting files (eg, Cascading Style Sheets (CSS)), JavaScript (JavaScript -JS) when a site visitor clicks on a link. the browser requests a static page by selecting a bookmark , or by entering the URL , then the web server sends it directly to the web browser without modifying the entire content or data of the page.




The dynamic page is the same layout and display different content to different users while maintaining the design. These pages are usually written in CGI, AJAX, ASP, PHP or ASP.NET, and are less loaded than normal static pages. Dynamic pages are often designed or implemented to display information that changes frequently, for example, weather updates or stock prices.

In dynamic pages there are usually multiple application programs for different types of services. Also server-side resources such as databases are required with dynamic pages. Whenever a page creator uploads content to the database, it can be retrieved by the website in response to the user's request.

Dynamic Web Page


1. Client : Side Scripting : These scripts generate the content of the page by executing on the user's computer instead of the web server.

2. Server-Side Scripting: The web page that changes when it is loaded or visited, uses server-side scripting. When the page loads, server-side content is generated. Such as login page, shopping cart and submission form.


How Dynamic Web Pages Work



Knowing about HTML, CSS, PHP and all other web coding techniques is one thing, but actually doing something useful with these techniques is quite another. A dynamic web page is one that includes content that is generated on-the-fly from a web server, rather than being hard-wired into the page. This means that the content of the page is changed based on a user request, when data is added to or modified in the server, or in response to an event, such as the click of a button or link can go.

For example, let's say you want to use a web page to view something that is on the server. Here's a general look at the steps involved in this process:

1. JavaScript first determines the data it needs from the server.

JavaScript has several ways to do this, such as extracting information from a URL, reading a user-selected item from a list, or by the user. Responding to clicks made. JavaScript sends a request to the server for data. In most cases, JavaScript sends a request to the server by calling a PHP script.

2. The PHP script receives the request and sends it to MySQL. PHP script uses information from JavaScript to create SQL commands that MySQL can understand.

3. MySQL uses SQL commands to extract the required information from the database and then returns that data to a PHP script.

4. The PHP script manipulates the returned MySQL data into a form that JavaScript can use. JavaScript cannot read raw MySQL data, so one of PHP's most important functions is to convert that data into JavaScript Object Notation (JSON) format.

5. PHP sends the JSON data back to JavaScript.

6. JavaScript displays data on a web page.

The most important advantage of JavaScript is that you can display the data to the user as you wish, using existing HTML and CSS and JavaScript.








Post a Comment

Previous Post Next Post