Presentation is loading. Please wait.

Presentation is loading. Please wait.

CGI and Perl - Basics Please use speaker notes for additional information!

Similar presentations


Presentation on theme: "CGI and Perl - Basics Please use speaker notes for additional information!"— Presentation transcript:

1 CGI and Perl - Basics Please use speaker notes for additional information!

2 Note that the param(‘dept’) could have been written as param(“dept”).

3

4

5

6 I put the dept.html code and the spruce.gif image in the begin subdirectory/folder under the public_html directory/folder. Note that I mirror the setup on my hard drive to help me keep a structure to what I am doing.

7 I put the dept.cgi in the begin subdirectory/folder under the cgi-bin directory/older.

8

9

10 Spruce Department Store Spruce Department Store Select an employee to get more information: Smith Ash Costa Anderson Sousa Parker

11 #!/usr/bin/perl #another example of cgi and perl print "Content-type: text/html\n\n"; use CGI qw(:standard); print " \n"; print " Spruce Department Store \n"; print " \n"; print " Employees of Spruce Department Store \n"; print "Employee: ", param('emp'), " Title: ", param('title'), "\n"; print " \n";


Download ppt "CGI and Perl - Basics Please use speaker notes for additional information!"

Similar presentations


Ads by Google