Held: Tuesday, 25 November 2003
Summary: Today we begin our exploration of the CGI scripts that are used to dynamically generate Web pages.
greeting.html, a sample file for the lab.
greeting.scm, a sample file for the lab.
webutils.scm, a library for the lab.
.cgirepresents CGI scripts).
cgi-binare CGI scripts).
.cgiis a CGI script.
(page)procedure that returns a string that represents an HTML page.
#!/bin/bash /home/rebelsky/bin/schemeweb your-scheme-file
/home/rebelsky/bin/schemewebis the helper program I've set up to run Scheme-based CGI scripts.
<form method="get" action="cgi-script"> <input type="text" name="variable-name"> <input type="submit" value="text-on-button"> </form>
get-cgi-variableprocedure to extract the value associated with a variable name from a form.
(define fave-color (get-cgi-variable 'color "Blue"))
get-cgi-variable, you need to load my Web utilities with
Thursday, 28 August 2003 [Samuel A. Rebelsky]
I usually create these pages
on the fly, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Tue Dec 9 14:00:00 2003.
The source to the document was last modified on Mon Sep 1 13:30:51 2003.
This document may be found at