i am trying to create a login page for a website..whenever i am clicking on Login it is giving this error
Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server. If you think this is a server error, please contact the webmaster. Error 403 localhost Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15
i have attached my code with this.
Login.php
<?php
require 'connect.inc.php';
require 'core.inc.php';
include 'loginform.php';
?>
Loginform.php
<?php
if(isset($_POST['u_name'])&& isset($_POST['pass'])) {
$u_name = $_POST['u_name'];
$pass = $_POST['pass'];
if(!empty($u_name)&&!empty($pass)) {
echo 'OK';
}
else {
echo 'Fields cannot be blank';
}
} ?>
<form action="<?php echo $currentfile;?>" method="POST">
username: <input type="text" name="u_name">
password : <input type="password" name="pass">
<input type="submit" value="Login"></input>
</form>