Sorry
I've login script that I'm trying to debug. User type in user id password.
I'm getting the premature end of script headers. Therefore, I need to find why and where this is happing.
Dan
--On 25 November 2004 08:04 -0600 "JupiterHost.Net" <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] wrote:
Hi
Hello,
How best to debug a form that requires user to input data?
What do you mean "debug a form"? Do you mean validate wah they enter?
With some programming lang it is possible to single step line by line. Is it possible with perl?
Yes I imagine its very possible and quite easy to do with perl, but we need a bit more info :)
one thing you could do:
use strict; use warnings; use CGI 'param';
my $year = param('year');
if($year !~ m/^\d+$/) { die 'Year needs to be all digits!'; }
HTH :)
Lee.M - JupiterHost.Net
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>