Download presentation
Presentation is loading. Please wait.
Published byRosa Hensley Modified over 8 years ago
1
Sending data with CGI/Perl Please use speaker notes for additional information!
2
#!/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.
3
selectcrs.html/CIS47.cgi/CIS44.cgi
5
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).
6
passcrs.html/CISpasscrs.cgi
7
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.
8
pass2info.html/CISpasscrs2.cgi
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.