For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > April 2006 > using CGI module









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author using CGI module
Victor

2004-11-16, 3:55 pm

I need to access a variable like this: $cgi->param($variable);
This doesn't work.
But this works: $cgi->param('name');

The first try ($cgi->param($variable)) ends with a "Internal server error".

Thank you.
Gunnar Hjalmarsson

2004-11-16, 3:55 pm

Victor wrote:
> I need to access a variable like this: $cgi->param($variable);
> This doesn't work.
> But this works: $cgi->param('name');
>
> The first try ($cgi->param($variable)) ends with a "Internal server error".


Please post a short but complete program that illustrates your observation.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
pickleman

2006-04-30, 11:38 am

"Internal server error" usually happens when Perl produces an error, and you can find the real error in your CGI error log (it's usually a lot more helpful.) Or, if you don't mind visitors seeing the error messages, put

use CGI::Carp qw/fatalsToBrowser/;

at the top of your page and the ISE message will include the error Perl returned.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com