More

    What is Dynamic Web Page?

    Dynamic Web Page 

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

    Dynamic pages display different content to different users while maintaining the same layout and design. These pages are usually written in CGI, AJAX, ASP, PHP or ASP.NET, and they take longer to load than normal static pages. Dynamic pages are often created or implemented to display information that changes frequently. For example, weather updates or stock prices.

    Dynamic pages typically contain multiple application programs for different types of services, as well as those with dynamic pages that require server-side resources such as databases. Whenever page creators upload content to the database, it can be retrieved by the website in response to a user request.

    Types of Dynamic Web Page

    1. client-side scriptingClient-side Scripting): These scripts are executed on the user’s computer instead of the web server and generate the content of the page.
    2. Server-Side Scripting (Server-side Scripting): A 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 Page Works

    Knowing about HTML, CSS, PHP and all other web coding techniques is one thing, but actually doing something useful with the help of 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 hard-wired into the page. This means that the content of the page is changed based on the user’s request, the server adding or modifying data, 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 access a web page to view some data that is on the server. Here’s a general look at the steps involved in this process:

    1. First of all, JavaScript determines the data it needs from the server.

    JavaScript has several ways to do this, such as extracting information from URLs, reading user-selected items from a list, or responding to user clicks. JavaScript sends a request to the server for data.

    In most cases, JavaScript sends a request to the server by calling a PHP script.

    1. 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.
    1. MySQL uses SQL commands to extract the required information from the database and then returns that data to a PHP script.
    2. The PHP script manipulates the returned MySQL data into a form that JavaScript can use.

    JavaScript cannot read raw MySQL data, so one of the most important functions of PHP is converting that data into JavaScript Object Notation (JSON) format.

    also fall

    1. PHP sends JSON data back to JavaScript.
    2. 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.

     

     

    Recent Articles

    Related Stories

    Leave A Reply

    Please enter your comment!
    Please enter your name here

    Stay on op - Ge the daily news in your inbox