Perl
  Home arrow Perl arrow Page 3 - Perl 101 (part 8) - Putting It To The ...
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PERL

Perl 101 (part 8) - Putting It To The Test
By: Vikram Vaswani and Harish Kamath, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2000-10-02

    Table of Contents:
  • Perl 101 (part 8) - Putting It To The Test
  • Adding Things Up
  • Visitors Welcome!
  • The Code...
  • ...And The Explanation
  • Going Backwards
  • Fortune Cookies
  • You Have Mail!

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Route your faxes to your email inbox. Private, secure fax numbers available from CallWave. Choose your fax number.

    Perl 101 (part 8) - Putting It To The Test - Visitors Welcome!
    (Page 3 of 8 )

    Next up, a guest book. We're going to create a simple guest book that asks the user to enter three parameters: name, email address and comment.

    In order to make things simple for you, we've included the basic HTML code for the form as well.all you need to do is cut, copy and paste into your favourite HTML editor. Good service, huh?
    <html>
    <head>
    <basefont face=Arial>
    <title>Guest Book</title>
    </head>
    <body>
    <form action="submit.cgi" method="post">
    <center>
    <h2>Your Space In My Space</H2>
    <table width="600" bgcolor="#D6D6D6" cellpadding="10" cellspacing="5">
    <tr>
    <td width="300" align="right">Name</td>
    <td width="300" align="left"><input type="text" name="name"
    size="25" maxlength="25"></td>
    </tr>
    <tr align="center">
    <td width="300" align="right">Email</td>
    <td width="300" align="left"><input type="text" name="email"
    size="25" ></td>
    </tr>
    <tr>
    <td align="right" width="300">Comments</td>
    <td align="left" width="300"><textarea name="comments" cols="25"
    rows="3" wrap="virtual"></textarea></td>
    </tr>
    <tr>
    <td colspan=2 align="center" width="600"><input type="submit"
    value="Sign My Guestbook"></td>
    </tr>
    </table>
    </div>
    </form>
    </body>
    </html>
    

    As you can see, this form asks the user to enter three values: Name, Email address and Comments. The ACTION of the form is a CGI script that will accept the values entered into the form and store them in a text file.

    This article copyright Melonfire 2000. All rights reserved.

    More Perl Articles
    More By Vikram Vaswani and Harish Kamath, (c) Melonfire


     

       

    PERL ARTICLES

    - Perl: A Continuing Look at Hashes and Multid...
    - Perl: Another Round with Hashes
    - Perl Hashes
    - Perl Lists: A Final Look at List::Util
    - Perl Lists: Utilizing List::Util
    - Perl Lists: The Split() Function
    - SQL and CGI with Perl and DBI
    - Perl Lists: More Functions and Operators
    - SELECT Queries and Perl
    - Perl Lists: More on Manipulation
    - Creating a Database with Perl and DBI
    - Perl: Sailing the List(less) Seas
    - Perl and DBI
    - Perl: Concatenating Text and More
    - Perl Text: Quoting Without Quote Marks

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway