i'm creating a login page that calls a php script and that script verifies the name and password with one in a database. i have all this working but my problem is how do I open another page using code?
i'm using an if statement that checks if there is a match or not, if it's true i want it to open index.php in the current window else if it's not true i want it to open login.php in the current window. this is probably simple, but i just can't seem to figure it out. i've tried using echo("a href='login.php'>.... but it doesn't work.
outline of the if statement i'm using:
if (true)
{
open index.php
}
else
{
open login.php
}