Re: Showing errors with user input

2009-12-10 Thread John W. Krahn
Adam Jimerson wrote: On Dec 7, 12:43 pm, g...@lazymountain.com (Greg Jetter) wrote: On Sunday 06 December 2009 10:24:31 am Adam Jimerson wrote: I am working on a registration page and there for want it to show the user errors it has found with their input. I have two subroutines in my code,

Re: Showing errors with user input

2009-12-10 Thread Adam Jimerson
Greg Jetter wrote: start by checking the content of @errors inside the print_form sub. with a print statement and exit. Greg Thanks for that, now that is working correctly I guess I didn't need to go through the array like I was trying. -- We must plan for freedom, and not only for

Re: Showing errors with user input

2009-12-09 Thread Adam Jimerson
Greg Jetter wrote: You are trying to use a local scoped var as a global , line 93 $GoodMail is used out of its scope , if ( $user[5] =~ /^([...@\w.]+)$/ ) { $user[5] = $1; eval { my $GoodMail = Email::Valid-address( -address = $user[5], - mxcheck = 1); return; } #push @errors,

Re: Showing errors with user input

2009-12-09 Thread Greg Jetter
On Tuesday 08 December 2009 9:50:57 am Adam Jimerson wrote: On Dec 7, 12:43 pm, g...@lazymountain.com (Greg Jetter) wrote: On Sunday 06 December 2009 10:24:31 am Adam Jimerson wrote: I am working on a registration page and there for want it to show the user errors it has found with their

Showing errors with user input

2009-12-07 Thread Adam Jimerson
I am working on a registration page and there for want it to show the user errors it has found with their input. I have two subroutines in my code, the first one prints out the form, also takes an array with error descriptions that is passed by the other subroutine. The other subroutine

Re: Showing errors with user input

2009-12-07 Thread Greg Jetter
On Sunday 06 December 2009 10:24:31 am Adam Jimerson wrote: I am working on a registration page and there for want it to show the user errors it has found with their input. I have two subroutines in my code, the first one prints out the form, also takes an array with error descriptions that