Both Perl and C versions are provided, with source. The input-echoing script, called with two input fields. Look at the URL listed in your browser after you run the scripts. Back to top of page CGI Mailer Script One of the most common uses of a CGI script is to mail form data to an email address. So here's a simple script that does just that, written in Perl, called mailer.pl .
Most browsers handle it correctly, i.e. send the form data in a mail message.
Accordingly, look out for security holes as you write your script. Mostly, don't trust the user input . In particular, don't put user data in a shell command without verifying the data carefully, lest a hacker drive a virtual truck through this security hole. Your security shouldn't rely on fields having certain values, or even existing or not existing. Back to top of page Placing Your Script on the Server Different Web servers are configured differently.