I've got this registration script I'm trying to work on, and I just can't get the stupid code working!
html is:
<html><head><title>Register</title></head>
<body>
<font size=4>Register for the Address Book</font>
<form method="post" action="register.pl">
<p>User <input name="nameBox">
Pass <input type="password" name="passBox">
<p><input type="submit" value="Submit">
</form>
</body>
</html>
perl script is:
#!usr/bin/perl
#This version of the registration script uses the mysql backend
use DBI;
use CGI qw
standard);
print header;
print start_html('Registration Successful');
print "You have successfully registered!";
print "<a href=http://157.62.24.146/~pastorem/dbtest/login.html>Click here</a>to login!";
print end_html;
$name = param('nameBox');
$pass = param('passBox');
$dbh = DBI->connect("DBI:mysql
astorem","pastorem@localhost","pastorem");
$sth = $dbh->prepare("insert into users values ('$name','$pass')");
$sth->execute;
Any ideas what the problem might be? I know the wrx permissions are set correctly, and my perl syntax checker says it's clean. You can see it for yourself atlink
Thanks!
html is:
<html><head><title>Register</title></head>
<body>
<font size=4>Register for the Address Book</font>
<form method="post" action="register.pl">
<p>User <input name="nameBox">
Pass <input type="password" name="passBox">
<p><input type="submit" value="Submit">
</form>
</body>
</html>
perl script is:
#!usr/bin/perl
#This version of the registration script uses the mysql backend
use DBI;
use CGI qw
print header;
print start_html('Registration Successful');
print "You have successfully registered!";
print "<a href=http://157.62.24.146/~pastorem/dbtest/login.html>Click here</a>to login!";
print end_html;
$name = param('nameBox');
$pass = param('passBox');
$dbh = DBI->connect("DBI:mysql
$sth = $dbh->prepare("insert into users values ('$name','$pass')");
$sth->execute;
Any ideas what the problem might be? I know the wrx permissions are set correctly, and my perl syntax checker says it's clean. You can see it for yourself atlink
Thanks!
