Hi,
as i understand, you just need a _post to a specified page.
Something like this:
Code:
<form method="post" action="secretPage.php">
Name:<input name="name" type="text"></input><br>
Password:<input name="password" type="password"></input><br>
<input type="submit" value="Submit">
</form>
And your secret page (named secretPage.php) looks like this:
Code:
<?php
$name = addslashes($_POST["name"]);
$password = addslashes($_POST["password"]);
$user = "somename";
$passw = "somepassw";
if($name == $user && $password = $passw)
{
$body = "<b>you are a member</b>";
}
else
{
$body = "incorrect username and/or password";
}
?>
<html>
<body>
<? echo $body; ?>
</body>
</html>
This is a very simple example! You should use a database containing the username and passwords.
I hope this is what you wanted to know.
Bookmarks