im trying to make a login for one of my pages(and set it up so i can use it with other pages also)
i think im having problems echoing the html.
heres the beta:
--------[photo.php]--------------
require "users.php";
if ($user = $usr && $pw = $pass) {
readfile("photocont.php");
}else{
echo "You cannot access this page unless you logon your account first: \n";
echo "<form name='logon' method='post' action='photo.php'> \n <input name='user' type='text' id='user'> \n <input name='pw' type='password' id='pw'> \n <input name='submit' type='submit' value='submit'> \n </form>";
}
?>
-------[photocont.php]-----------
<?php
echo "you are now logged in";
?>
-----------[users.php]----------
<?
$usr = "Austin" OR "test" OR "robert" OR "kenny";
$pass = "leeetzorz" OR "322test" OR "tsttstin" OR "kennycool2";
?>
Page URL: http://cs.idealdds.com/Austin/index.php?content=photo.php