Server-side code
Code that runs on the web server, not the browser. It handles a request, processes form data, queries the database and builds the response sent back to the client.
Understanding Server-side code in QCE Digital Solutions Unit 3
What it does: The server builds the HTML text and returns it as the response, which the browser then displays. This route tells the server which function runs when a POST request for /login arrives, so it handles the request. Server-side code runs on the web server. Code that runs in the browser is client-side code. Database queries are made on the server. Hover effects happen in the browser using CSS or JavaScript. The server must first understand the request data and fetch what it needs before it can build a response that uses the results.
Common mistakes: Submitted form data is read by indexing the form with square brackets, request.form["name"]. The form is not a function, so it cannot be called with round brackets. A function definition must end with a colon. It should be def show_users(db): so the server code can run.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 15–119) and word search (Modules 15–176).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
server-side codeFill in the Blanks
Spot the Error
Student with a class code? Join your class →