Home arrow Perl Programming arrow Page 3 - Perl 101 (part 8) - Putting It To The Test

Visitors Welcome! - Perl

In the concluding article in the Perl 101 series, everythingyou've learnt so far is put to the test when you develop some real-worldCGI applications - a counter, a guest book and a form mailer.

TABLE OF CONTENTS:
  1. Perl 101 (part 8) - Putting It To The Test
  2. Adding Things Up
  3. Visitors Welcome!
  4. The Code...
  5. ...And The Explanation
  6. Going Backwards
  7. Fortune Cookies
  8. You Have Mail!
By: Vikram Vaswani and Harish Kamath, (c) Melonfire
Rating: starstarstarstarstar / 4
October 02, 2000

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
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 Programming Articles          >>> More By Vikram Vaswani and Harish Kamath, (c) Melonfire
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

PERL PROGRAMMING ARTICLES

- Perl Turns 25
- Lists and Arguments in Perl
- Variables and Arguments in Perl
- Understanding Scope and Packages in Perl
- Arguments and Return Values in Perl
- Invoking Perl Subroutines and Functions
- Subroutines and Functions in Perl
- Perl Basics: Writing and Debugging Programs
- Structure and Statements in Perl
- First Steps in Perl
- Completing Regular Expression Basics
- Modifiers, Boundaries, and Regular Expressio...
- Quantifiers and Other Regular Expression Bas...
- Parsing and Regular Expression Basics
- Hash Functions

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: