Server side scripting embeds scripts in HTML code that are run on the web server to dynamically generate web pages in response to client requests. This allows websites to interact with databases for functions like processing online orders. Using both client side and server side scripting together reduces overhead for both servers and clients, improving overall performance. Server side scripting handles secure tasks like user logins and databases, while client side adds interactivity to how data is displayed to users.