HOME       >>       Programming

How To Go To Index.html From Login.php Page


hello huys im new here and to php and data base connections
i have a question,i have this page as my login page >>> login.php

<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Login</title><link href="loginmodule.css" type="text/css" /></head><body><p> </p><form id="loginForm" name="loginForm" method="post" action="login-exec.php"> <table width="300" border="0" align="center" cellpadding="2" cellspacing="0"> <tr> <td width="112"><b>UserName</b></td> <td width="188"><input name="UserName" type="text" id="login" /></td> </tr> <tr> <td><b>Password</b></td> <td><input name="password" type="password" id="password" /></td> </tr> <tr> <td> </td> <td><a href="Index.html"><input type="submit" name="Submit" value="Login" /></a></td> </tr> </table></form></body></html>
how do i check user name and passwords to see if they are in my DB then it guide the user wit SESSIONS to the index page >>> index.php
wat i need to do for that
sry if im too noob

i have username , password , first name , last name , ACCESS , uid , email tabels in my sql
now another question is how to make different users to different index pages?


First of all you need to learn something about php session "session_start() and session_destroy()" ,if you do , you will know that you can't use an html page after the user loged in "if you want to keep him loged in".If you don't have an idea like you say , then i will suggest you to download a php login script "you can find how to code it anywhere on the net ,just type php login script in google and pick up the good one.If you cannot find an answer after that , tehn reply and i will code something for you


woooowww man thanx a bunch but these samples are tooo pro,our teacher will find out that i didnt wrote themi want a login page wit 3 access,admin,user,guestfor a simple news site,that each one can do different things wit a welcome user/admin/guest thinglike admin can add,view,delete,edit news and upload,view,delete in pic section guest can only view news/picusers can only view news and upload pics in gallery section and view picsUSING sessions for each and a logout button.if u know a sample look like this ill be so glad if u tell where to find?need a simple registeration too that only wants Fname , Lname , username , password to resgister users


this thing worth 12/20 of one of my final exams


Xisto.com offers Free Web Hosting to its Members for their participation in this Community. We moderate all content posted here but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2001-2019 by Xisto Corporation. All Rights Reserved.