Jump to content

Archived

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

cameeob2003

Including the login form in the index file. Is it safe?

Recommended Posts

I was wondering if including the login.php in the index.php file is safe im using

example:
[code]<?php
if($_GET['page'] == "login"){
my processing form
};
?>[/code]

then i am refrencing it through the following
example:
[code]<form name="form" action=?page=login>
form
</form>[/code]

I hope that explains the basics I am using sessions to secure the site a bit but im not sure if I should use this method to login or not. I have a separet db.php file which i refrence to run all my sql querys. But im asking cuz i heard this can be a security risk.

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.