Welcome to my free scripts page. This page was originally part of my Web Engineer's Toolbox.. (Visit the toolbox for more useful web goodies and information.)
The Free Stuff:
Form-to-Mail
Tell A Friend
Counter
More stuff coming soon.
Usable for guestbooks, and any other form where you want to email yourself the data. Caveat: neither of these will handle multiple checkboxes of the same name. (just use different names for each checkbox and you'll be fine.)
- mail-form.cgi - a simple, barebones version - just change the $recipient value in the script to your email address.
- generiform.cgi - a fancier version, this requires no editing of the CGI itself (except to define the locations of perl and sendmail); rather, the recipient of the mail, and the order of the fields mailed, is defined in the form itself. Here's an example.
Let visitors recommend your site to their friends.
- tellafriend.cgi - completely configured inside the HTML form. You may want to view the source of this example form to see how to set it up.
Counters are popular. Here are two variations:
- txcounter.cgi - designed to be called via Server-Side Include (this is the same sort of thing we have on the cgi101 front page).
- counter.cgi is a simple hidden counter. It is designed to be used in lieu of an image tag, so instead of doing
<img src="whatever.gif">, you would use<img src="counter.cgi">. The script increments a counter in a file, then returns the gif image. The person visiting your page need never know you have an embedded counter going.Interested in learning perl online? Visit the CGI Programming 101 Class on this site!