Hey, some edit's
Not coded anything in 3 months though maybe i'm rusty :/
Code:
<?php
error_reporting(E_ALL & ~E_NOTICE);
header("Content-Type: text/html");
require_once("refreward.php");
session_name("MyLogin");
session_start();
// isset() isn't used, which means this should throw a NOTICE if error_reporting was set to display a NOTICE.
if($_POST['login'] == "failed") { //$_GET[''] ermm GET shouldn't be used on logins. It desplys in the URL
// Use echo, print has extra unnecessary overhead
echo $_GET['cause']; // This is vulnerable code
// Use htmlentities($_GET['cause'],ENT_QUOTES);
// or, to be honest, just don't do this at all!
}
// comment for line below, your using method POST but using GET in the code.
?>
<form method="post" action="log.php">
<p>Login:
<input type="text" name="user" /><br />
</p>
<blockquote>
<p>
<input type="submit" />
</p>
</blockquote>
</form>
I've never worked with a this script before. I cant see the included/required files or thier content.
But hope that cleared something up, if not sorry :O
May have made a mistake but im only human-ish :)
BIG EDIT: Fail on my part..
Seen your post again and noticed I changed the form :O oops