brsy
nah mang
- May 12, 2011
- 1,530
- 272
Okay, I know using POST is very exploitable, but I created a PHP function to filter them out. I just need some help with a quick error. Here's my page that contains my form:
Index.php
Submit.php
Index.php
PHP:
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/global.css" />
<title>Administrative Panel: Login</title>
</head>
<body>
<div class="loginContainer">
<div class="loginBox">
<div class="loginHeader">
<div class="loginDivider">
<form action="submit.php" method="post">
<input type="text" class="loginInput" placeholder="Username..." name="username" />
<input type="password" class="loginInput" placeholder="************" name="password" />
<input type="submit" class="loginSubmit" value="" name="submit" />
</form>
</div>
</div>
</div>
</div>
</body>
</html>
Submit.php
PHP:
<?php
//include('../class/class.configuration.php');
require_once('/class/class.module.php');
$username = $_POST['username'];
$password = $_POST['password'];
echo "$password . $username";
?>