Server Side Scripting Key Points Meaning of ? In URL Arguments/inputs: name/value pairs, & separates Create/abuse input in the URL Input validation (server or client) Avoiding client side validation Entire GET will be in server logs
var iter = 0; while(iter < 1000) { document.write("G O N A V Y ! "); iter = iter + 1; } var iter = 0; while(iter < 1000) { document.write("G O N A V Y ! "); iter = iter + 1; } function (N) { var out = ""; var iter = 0; while(iter < N) { out = out + "G O N A V Y ! "; iter = iter + 1; } return out; } G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y server finds server sends browser executes and renders server finds and executes server sends browser renders Client-Side Scripting Server-Side Scripting
Forms Form Input Buttons
°F (browser back-button to return) function(fahrenheit) { var f = fahrenheit; var c = 5/9*(f - 32); return c + ' °C'; } f2c.html - on client f2c.jsx - on server Tells browser to construct a URL that will be sent