On 1/27/06, Dilly raja <[EMAIL PROTECTED]> wrote:
>
> I have a cgi script adduser.cgi which collects the data from the user
> through adduser.html. when i execute this script i encountered the error
> as
> shown below.
>
> Name "dbi::errstr" used only once: possible typo at adduser.cgi line 18.
On Fri, 27 Jan 2006 10:22:21 -0500, John Scoles wrote:
Hi John
> $sth->execute()||die "Unable to insert the value: $dbi::errstr\n";
As Andy has pointed out, Perl is a case-sensitive language.
What follows is really off topic...
> I took the liberty of rewriting part of your code a little so it
> -Original Message-
> From: Dilly raja [mailto:[EMAIL PROTECTED]
>
> I have a cgi script adduser.cgi which collects the data from the user
> through adduser.html. when i execute this script i
> encountered the error as
> shown below.
>
> Name "dbi::errstr" used only once: possible typo
try
$sth->execute() or die "Unable to insert the value: $dbi::errstr\n";
rather than
$sth->execute()||die "Unable to insert the value: $dbi::errstr\n";
I took the liberty of rewriting part of your code a little so it is more
readable and it is using params. This is a much more secure way to do
I have a cgi script adduser.cgi which collects the data from the user
through adduser.html. when i execute this script i encountered the error as
shown below.
Name "dbi::errstr" used only once: possible typo at adduser.cgi line 18.
the complete script of the adduser.cgi is shown below. Since i a