Jump to content
xisto Community
Sign in to follow this  
sylvanasp

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

Recommended Posts

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" rel="stylesheet" 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" class="textfield" id="login" /></td>	</tr>	<tr>	  <td><b>Password</b></td>	  <td><input name="password" type="password" class="textfield" 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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Edited by sylvanasp (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.