Presentation is loading. Please wait.

Presentation is loading. Please wait.

Sending data with CGI/Perl Please use speaker notes for additional information!

Similar presentations


Presentation on theme: "Sending data with CGI/Perl Please use speaker notes for additional information!"— Presentation transcript:

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

4

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

9


Download ppt "Sending data with CGI/Perl Please use speaker notes for additional information!"

Similar presentations


Ads by Google