I need a register/login script that will protect a directory and if a users try accessing when not logged in have it redirect them to the login page. how much would it cost for one of you to knock up a quick script?
$30, md5 password, possible email check, user database, possible user page, with install and explanations.
hi i'm interested in your login script. i need a simple system that requires email authentication and a payment gateway (paypal and worldpay plus expandability to add others) can advise if you can do this, thanks!
<? include "conn.php"; if(isset($_POST['login'])) { $res = mysql_query("select userid, email, fname from users where loginid = '".$_POST['login']."' and password = '".$_POST['password']."'") or die(mysql_error()); if($row = mysql_fetch_object($res)) { session_start(); $_SESSION['userid'] = $row -> userid; $_SESSION['loginid'] = $_POST['login']; $_SESSION['email'] = $row -> email; $_SESSION['fname'] = $row -> fname; if($_SESSION['postadd'] == true) { $_SESSION['postadd'] = false; header("Location:postadd.php"); exit(); } else { header("Location:index.php"); exit(); } } else { $error = true; } } ?> PHP: