On Mon, 17 Mar 2003, Robbie Staufer wrote: > I have a partial perl script for a mock-up web page, that will collect > information from users as part of a registration form. In trying to see > what it looks like so far on the web, I'm getting an internal server > error. I thought that the script, though partial, was at least closed > out correctly, but I'm missing something. If anyone has time to take a > look, it would be much appreciated.
1) Why, if you are using CGI.pm, are you hardcoding your HTML into strings? Using the CGI.pm methods is safer so you don't have to worry about your tags and can focus on your application logic. Also you start out using CGI.pm with OOP style, but are using :standard. You've mixed up your methodology, and that I am sure is throwing all kinds of errors. 2) You should open up your web server logs and see what the error is. I usually have them open in a separate window (tail -f error_log) so I can watch them while trying stuff out in the browser. 3) You should get into the habit of using perl -w and 'use strict'. They can help you eliminate a LOT of coding problems. Also, you can run CGI scripts from the command-line for testing. You run your script as: <scriptname> "param1=value1¶m2=value2" It's very handy for debugging! -- Brett http://www.chapelperilous.net/ ------------------------------------------------------------------------ Tallulah Bankhead barged down the Nile last night as Cleopatra and sank. -- John Mason Brown, drama critic -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]