Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$patent =$value; while (1) { # checking for any non-numeric characters unless ($patent =~ /^[\d]+$/){ print <<ENDERRORCARD; <HTML> <HEAD> <TITLE>Data Entry Error</TITLE> </HEAD> <BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000EE" VLINK="#551A +8B" ALINK="#FF0000"> <CENTER> You either entered a patent number with special characters.<BR> Use your browser's BACK option to try again. </CENTER><P> </BODY> </HTML> ENDERRORCARD next; } last if 1 <= $patent and $patent <= 6009555; print <<ENDERRCARD; <HTML> <HEAD> <TITLE>Data Entry Error</TITLE> </HEAD> <BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000EE" VLINK="#551A +8B" ALINK="#FF0000"> <CENTER> You entered a patent number that was not between 1 and 6,009,555.< +P> Use your browser's BACK option to try again. </CENTER><P> </BODY> </HTML> ENDERRCARD } # This compares the patent number of the user against US patent number + dates
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re: HTML error routine
by Ovid (Cardinal) on Dec 13, 2001 at 05:58 UTC | |
|
Re: HTML error routine
by Anonymous Monk on Dec 13, 2001 at 15:41 UTC |