Fundamentals of Computer Science 1 (CS151 2003S)
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[EC]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Lab Writeups]
[Outlines]
[Project]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Misc:
[Scheme Reference]
[Scheme Report]
[CS151 2003S Gum]
[CS151 2002F]
[CS151 History]
[SamR]
Back to Characters and Strings. On to CGI Scripting, Continued.
Held: Monday, 10 February 2003
Summary: Today we begin our exploration of the CGI scripts that are used to dynamically generate Web pages.
Related Pages:
Due
Notes:
(display str)
.Overview:
.cgi
represents CGI scripts).
cgi-bin
are CGI scripts).
.cgi
is a CGI script.
(page)
procedure
that returns a string that represents an HTML page.
(page)
.
#!/bin/bash /home/rebelsky/bin/schemeweb your-scheme-file
/home/rebelsky/bin/schemeweb
is 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-variable
procedure 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
(load "/home/rebelsky/Web/Scheme/webutils.ss")
Thursday, 16 January 2003 [Samuel A. Rebelsky]
Back to Characters and Strings. On to CGI Scripting, Continued.
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[EC]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Lab Writeups]
[Outlines]
[Project]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Misc:
[Scheme Reference]
[Scheme Report]
[CS151 2003S Gum]
[CS151 2002F]
[CS151 History]
[SamR]
Disclaimer:
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 May 6 09:29:43 2003.
The source to the document was last modified on Thu Jan 16 13:45:57 2003.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS151/2003S/Outlines/outline.13.html
.
You may wish to
validate this document's HTML
;
;
Check with Bobby