|
Kaye and Geoff's web page documentation
Perl script to return unformatted data passed from a formThe following Perl code returns a web page containing the information (unchanged) which it received from the form which invoked it. The string from the form is assigned to the variable $incoming from the predefined file handle STDIN. Anything written to standard output goes back to the browser, so the script uses PRINT statements to first output the MIME type (note followed by two line terminators) and then some basic HTML to display a web page containing the string.
' . "$incoming\n"; print ' ' . "\n"; print ''; exit; |
|
Top Close |