murli800 Posted April 30, 2011 Share Posted April 30, 2011 hi i want to include session so that attendance.php can't be acess directly.. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/235169-problem-in-including-session/ Share on other sites More sharing options...
wildteen88 Posted April 30, 2011 Share Posted April 30, 2011 In main.php you're submitting the form to attendence.php <form name="form1" action="attendance.php" method="get"> If you don't want the user to go to attentdence.php then set the forms submit action to main.php. Now above your form include attendence.php. Also I'd recommend you to change your forms submit method to post. Passing usernames/passwords over the url is insecure. You should also be encrypting your passwords within the database too. Quote Link to comment https://forums.phpfreaks.com/topic/235169-problem-in-including-session/#findComment-1208594 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.