But you probably know about as much about htaccess as you do php and I think more people here know php than htaccess so you can get more help via php.
try making a php file (anyname.php) and saving it with the following
PHP Code:
<?php
if ( isset($_POST['username']) && isset($_POST['password'])) {
if ($_POST['username']=="carfreak" && $_POST['password']=="CHANGETHIS") {
header("Location: testlogin.htm");
}
if ($_POST['username']=="lovegirl" && $_POST['password']=="CHANGETHIS") {
header("Location: testlogin.htm");
}
if ($_POST['username']=="sample" && $_POST['password']=="CHANGETHIS") {
header("Location: nothere.htm");
}
if ($_POST['username']== && $_POST['password']=="CHANGETHIS") {
header("Location: CPANEL=304935609023q840943903258fg094et9ig0r9e.htm");
}
if ($_POST['username']== && $_POST['password']=="CHANGETHIS") {
header("Location: yay.htm");
}
}
?>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title>Test-Login.html</title>
</head>
<body>
<form name="login" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
<div align="center">
<center>
<table width="225" cellpadding="3" border="1">
<tbody>
<tr>
<td colspan="2"><font size="5"><b>Members-Only Area!</b></font></td>
</tr>
<tr>
<td>Username:</td>
<td><input type="text" name="username" size="20"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="text" name="password" size="20"></td>
</tr>
<tr>
<td align="center" colspan="2"><input type="button" onclick="Login()" value="Login!"></td>
</tr>
</tbody>
</table>
</center>
</div>
</form>
<p align="center"><font face="arial, helvetica" size="1">Or </font><a href="http://kapleenmusic.webfreehosting.net"><font face="arial, helvetica" size="1">Register</font></a></p>
</body>
</html>
Bookmarks