Server-side Scripting Primer

## Web Primer

Web Primer Web HTML Web CSS Web JavaScript Web XML Web Server Web SQL

# Server Scripting Primer

« Previous
Next Chapter »

## Server-side Scripting

An HTML file can contain HTML tags, text and scripts.

Server-side scripting is about "programming" the behavior of the server. This is called server-side scripting or server scripting.

Client-side scripting is about "programming" the behavior of the browser. (see Web JavaScript chapter).

Normally, when a browser requests an HTML file, the server returns the file. However, if the file contains a server-side script, the script is executed on the server before the file is returned to the browser as plain HTML.

## What can Server Scripts Do?

- Dynamically edit, change or add any content to a Web page
- Respond to user queries or data submitted from HTML forms
- Access any data or databases and return the result to a browser
- Customize a Web page to make it more useful for individual users
- Provide security since your server code cannot be viewed from a browser

Important: Because the scripts are executed on the server, the browser that displays the file does not need to support scripting at all!

## ASP and PHP

At W3Schools we demonstrate server-side scripting by using Active Server Pages (ASP) and Hypertext Preprocessor (PHP).

## ASP Examples

Write text with ASP
How to write text with ASP.

Add some HTML to the text
How to format the text with HTML tags.

## How to Learn ASP or PHP?

Study our PHP, ASP and .NET (Dotnet) Web Building Examples

« Previous
Next Chapter »

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

Best Web Hosting UK Reseller Hosting Wow! $5 SSD Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER FREE Website Creator

## WEB RESOURCES

Web Statistics Web Validation

## SHARE THIS PAGE