B
Bleah
Guest
<?php
$con = mysql_connect("wee","wee","wee");
if (!$con)
{
die("Could not connect: " . mysql_error());
}
require('register.php');
if (!isset{$_POST['username']} || !isset{$_POST['password']} || !isset{$_POST['confirmpassword']})
{echo "One or more fields were not filled out. Fill them out. Now.";
}
else {
$username = {$_POST['username']};
$password = {$_POST['password']};
$confirmpassword = {$_POST['confirmpassword']};
}
if ($confirmpassword != $password)
{
echo "The passwords didn't match.";
}
else {
mysql_query("INSERT INTO login (username, password) VALUES ($username,$password)");
}
?>
$con = mysql_connect("wee","wee","wee");
if (!$con)
{
die("Could not connect: " . mysql_error());
}
require('register.php');
if (!isset{$_POST['username']} || !isset{$_POST['password']} || !isset{$_POST['confirmpassword']})
{echo "One or more fields were not filled out. Fill them out. Now.";
}
else {
$username = {$_POST['username']};
$password = {$_POST['password']};
$confirmpassword = {$_POST['confirmpassword']};
}
if ($confirmpassword != $password)
{
echo "The passwords didn't match.";
}
else {
mysql_query("INSERT INTO login (username, password) VALUES ($username,$password)");
}
?>