Sending data with CGI/Perl Please use speaker notes for additional information!
#!/usr/bin/perl #CIS47 dynamic web page print "Content-type: text/html\n\n"; print " \n"; print " Course test \n"; print " This is the page for CIS47 \n"; print " \n"; CIS47.cgi This is the HTML code that will be executed when this page is executed.
selectcrs.html/CIS47.cgi/CIS44.cgi
passcrs.html/CISpasscrs.cgi The CGI.pm module that is made available through use CGI qw(:standard) parses the data that the script receives by separating the key and the value. The param function can then access the value that is associated with the key used. Note that the syntax for the param function is param(key).
passcrs.html/CISpasscrs.cgi
pass2info.html/CISpasscrs2.cgi In this example, I am sending a data item with the key of course and a data item with the key of crstitle. Note that these are the names that are used with the param function.
pass2info.html/CISpasscrs2.cgi