Server Technology PPNT User Manual Page 17

  • Download
  • Add to my manuals
  • Print
  • Page
    / 95
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 16
CGI Examples(6/7)
Example 4:
Evaluate HTML forms: CGI as Perl script
POST method, with parameters from client, read from stdin
Write HTML to st dout
#!/usr/bin/perl
require "cgi-lib.pl";
if (&ReadParse) {
print &PrintHeader, &PrintVariables;
} else {
print &PrintHeader,’<form><input type="submit">
Data: <input name="myfield">’;
}
(17/95)
Page view 16
1 2 ... 12 13 14 15 16 17 18 19 20 21 22 ... 94 95

Comments to this Manuals

No comments