I guess I didn't have to post the terms and condition for real. Anyhow, here is the code I got from the file called register.php.
<?
require_once("conn.php");
require_once("includes.php");
if(isset($_POST[s1]))
{
$MyExp = mktime(0,0,0,date(m) + 1, date(d), date(Y));
$q1 = "insert into cars_agents set
username = '$_POST[NewUsername]',
password = '$_POST[p1]',
FirstName = '$_POST[FirstName]',
LastName = '$_POST[LastName]',
address = '$_POST[address]',
city = '$_POST[city]',
state = '$_POST[state]',
country = '$_POST[country]',
resume = '$_POST[resume]',
phone = '$_POST[phone]',
cellular = '$_POST[cellular]',
pager = '$_POST[pager]',
ResumeImages = '$ImageStr',
email = '$_POST[email]',
RegDate = '$t',
ExpDate = '$MyExp',
AccountStatus = 'active',
PriorityLevel = '1',
offers = '1' ";
mysql_query($q1);
if(ereg("key 2", mysql_error()))
{
$error = "<font face=verdana size=2 color=red><b>The username <font color=black>$_POST[NewUsername]</font> is already in use!<br>Select another one, please!</b></font>";
unset($_POST[NewUsername]);
}
elseif(ereg("key 3", mysql_error()))
{
$error = "<font face=verdana size=2 color=red><b>You are already registered!<br>Update your account, please!</b></font>";
unset($_POST);
}
else
{
$last = mysql_insert_id();
$_SESSION[NewAgent] = $last;
//send an email
$to = $_POST[email];
$subject = "Your registration at $_SERVER[HTTP_HOST]";
$message = "Hello $_POST[FirstName] $_POST[LastName],\nhere is your login information for $_SERVER[HTTP_HOST]\n\nUsername: $_POST[NewUsername]\nPassword: $_POST[p1]\n\nTo login, follow this link:\nhttp://www.automalljamaica.com/login.php\n\nThank you for your registration!";
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "Content-Transfer-Encoding: 8bit\n";
$headers .= "From: $_SERVER[HTTP_POST] <$aset[ContactEmail]>\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: PHP/" . phpversion()."\n";
mail($to, $subject, $message, $headers);
if($aset[Sitefee]=="1")
{
header("location:login.php");
exit();
}
else
{
header("location:prices.php");
exit();
}
}
}
//get the templates
require_once("templates/HeaderTemplate.php");
require_once("templates/RegistrationTemplate.php");
require_once("templates/FooterTemplate.php");
?>
There are no errors. I get the confirmation e-mail that thanks me for registering and listes my password and user name. It also gives me the url for logging in. However, when I log in, it says that "username/password is not in our database". When I look in my admin panel, I don't see any sign of any user
either.
Regarding your other questions. There was no readme.txt file and I think the database is already set up. There is a section in my control panel called "Databases" and in there is listed a database that's already in existence