Download presentation
Presentation is loading. Please wait.
Published byLee Bishop Modified over 9 years ago
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”).
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.
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";
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.