Jump to content


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


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

if($_GET['page'] == "login"){
my processing form

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

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.