brsy
nah mang
- May 12, 2011
- 1,530
- 272
So, I am trying to create a "submit.php" for a form that I created. I am trying to get it to work, but it just isn't working.
submit.php
Here is the error I am receiving:
I am aware that the "Undefined index" is because the values aren't posted.
submit.php
PHP:
<?php
include('/class/global.php');
$username = $_POST['username'];
$password = $tCore->tHash($_POST['password']);
$select = "SELECT * FROM `users` WHERE `username` = '$username'";
$selectArray = $select->fetch_array();
if(isset($_POST['submit'])) {
if(isset($username) && isset($password)) {
/* if($selectArray['password'] != $password) {
echo "y u no put right password?!";
}
else { */
echo $password;
}
}
?>
Here is the error I am receiving:
I am aware that the "Undefined index" is because the values aren't posted.