CGI Programming 101 - Learn CGI Today!: "
CGI Programming 101: Learn CGI Today!
CGI Programming 101 will show you how to add guestbooks, page counters, shopping carts and other interactive elements to your website. CGI programming is easy to learn; if you know HTML, you can learn CGI. You don't need any prior programming experience.
What You Need
You'll need a web server, for one. Chances are good that your current web host or ISP already supports CGI programs, but if you aren't sure, ask them. This book is geared towards Unix, but you can easily set up Apache and Perl on Mac and Windows. I've written several tutorials of how to get started; choose the one that's right for you:
Windows XP: how to set up Apache and Perl; how to configure Apache; where to write your programs; differences between CGI programs on XP and Unix
Mac OS X: how to configure Apache (which you already have installed); where to write your programs
Unix: How to upload programs to your Unix-based ISP; Unix tutorial; where to write your programs; Unix permissions.
Once you've gotten your server set up, you're ready to start writing CGI programs. Go to the Introduction:
Introduction - What is CGI? Why learn it? What do you need to get started?
Chapter 1: Getting Started [text] [programs] - where to write your programs; how to upload to the Unix host; changing permissions; writing your first CGI
Chapter 2: Perl Variables [text] [programs] - Scalars, arrays, and hashes
Chapter 3: CGI Environment Variables [text] [programs] - Using data from environment variables; writing forms using GET
Chapter 4: Processing Forms and Sending Mail [text] [programs] - Writing forms using POST: a form-to-mail CGI
Chapter 5: Advanced Forms and Perl Control Structures "