This is what my error log says on my redhat 7.1
[Sun Sep 16 13:18:33 2001] [error]
Undefined subroutine &main::redirect called at /var/www/cgi-bin/sobt/add.cgi
line 38.
[Sun Sep 16 13:18:44 2001] [error] [client 192.168.1.8] Premature end of
script
here is my code:
$dbh =DBI ->connect($data_source, $username, $password);
my $sth1 = $dbh -> prepare("insert into
media(serial,name,desc1)values('$serial'
,'$name','$desc1')");
$sth1 -> execute ;
#$sth1 -> finish;
$dbh->disconnect;
###############################################
# re direct page back
###############################################
print redirect('sobt_admin.cgi');
thanks for your time
Jim
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]