Server Technology PPNT Instrukcja Użytkownika Strona 17

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 95
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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)
Przeglądanie stron 16
1 2 ... 12 13 14 15 16 17 18 19 20 21 22 ... 94 95

Komentarze do niniejszej Instrukcji

Brak uwag