My login page works but when I try to join as a new member I get an error that says line 12 on the confirm page has an error.
I can't see what is different about line 12 than any other line.
Any help would be appreciated.
Here is the link to my join form:
http://199.101.8.178/jgeiger/join.asp
Here is the code for my confirm page:
<!--#INCLUDE FILE="includes/dbconnection.php"-->
<?
ob_start(); //turn on output buffering
session_start(); //start session variables
ini_set('display_errors', 1); //display all errors
$Username = $POST("UserName"); //request user entered and validated user name
$Password = $POST("Password"); //request user entered and validated password
$EMail = $POST("EMail"); //request user entered and validated email address
Auth = 1: //security variable set to default of 1
$News = $POST("news"); //initialize your variables, assigning them with the $_POST
require ('includes/dbconnection.php');//include the database connection
$authorized = false; //set testing variable
While not (!$rs->EOF) {; //while not at the end of the file continue
if ($rs->Fields["UserName"]->Value=="$username" && $rs->Fields["Password"]->Value=="$password") {;
$SESSION['auth'] = $rs->Fields['Auth']->Value;
$SESSION['username'] = $rs->Fields['UserName']->Value;
$authorized = true;
}
$rs->MoveNext();
}
if (!$authorized) {;
header('Location: logininvalid.php');
$ob_end_flush();
exit();} else {;
header('Location: index.php');
$ob_end_flush();
exit();
}
//check for duplicate names, redirect to user taken page, otherwise keep going, check authorize.php code for the code to do this
strSQL = "INSERT INTO Login (UserName, Password, EMail, Auth, News)"&_
"VALUES ( '" & UserName & "' , '" & Password & "' , '" & EMail & "', '" & Auth & "', '" & News & "')"
set objRS = conn.Execute(strSQL); //your sql statement goes here to insert the values
//execute SQL statement
$session("username") = session("tUserName"); //assign username variable
$session("auth") = 1; //assign auth value for security
require ('index.php');//redirect user to index.php page
//close the connection
$rs->Close();
$conn->Close();
$rs = null;
$conn = null;
$ob_end_flush();
?>