URLs Generated by Forms:
- Form:
http://machine/file.cgi?arguments
where arguments are of the form
name=value&name=value...
- Some data conversion issues:
- Spaces are converted to
+
- Special characters are converted to
%nn (hex
codes)
- Browsers differ in how they treat newlines in text; some
give
\n, others \r, others \r\n
- We have a library that handles the arguements for you
(it is /u/www/root/admin/bin/cgi.pl)
- Use
print &mime_header(); to print the content
type
- Use
%data = &get_data(); to get the arguments
- Use
$data{name} to access the data
- Use
(keys %data) to get the names of the items present