sneakyimp;10959605 wrote:The "notice" you received isn't really a bad error. It's just a note from PHP that you are referring to an array item which is not currently defined. If instead of trying to peek at the value of $_POST['submit'] you first check to see if it's been set (using [man]isset[/man]) then you can avoid the notice.
You can also change the degree to which PHP complains about these problems using [man]error_reporting[/man].
Im really new to this and i am trying to build a database/website basically copying right now to get the feel for how it all connects... New Problem using a new tutorial.
<?php
session_start();
$username = $POST['username'];
$password = $POST['password'];
include ("connect.php");
if ($username && $password)
{
//info is provided
$queryget = mysql_query ("SELECT * FROM users WHERE username='$username' AND password='$password' ");
$numrows = mysql_num_rows($queryget);
if ($numrows !=0)
{
$_SESSION['username'] = $username;
echo "You have been logged in" <a href='members.php'>Go to the members only page</a>";
}
else
echo "Your username was not found";
{
echo "You did not provide valid info. for login";
include ("index5.php");
}
?>
Getting error:
Parse error: parse error, expecting ','' or';'' in C:\wamp\www\login.php on line 19
Where do you see the problem?