Speed up development with full-stack environments for every branch.

Learn More

Simple PHP / MYSQL / jQUERY Login Script

Forked from Hello World.

20595 Runs 57620 Views 21278 Copies


cngodles 2

published 3 years ago

    <!doctype html>
    <html lang="en-US">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <title>Default Page Title</title>
      <link rel="shortcut icon" href="favicon.ico">
      <link rel="icon" href="favicon.ico">
      <link rel="stylesheet" type="text/css" href="styles.css">
      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
      <script type="text/javascript" src="js/login.js"></script>
    <!--[if lt IE 9]>
      <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <? if(!isset($_SESSION['tep_username'])){ ?>
    <form id="board_login" name="board_login" method="post" action="#" onsubmit="return false;">
      <input name="do" type="hidden" value="login" />
      <table width="400" border="0" cellspacing="0" cellpadding="5">
    		<td width="109" align="right">Username:</td>
    		<td width="271"><input name="b_username" type="text" id="b_username" maxlength="50" /></td>
    		<td align="right">Password:</td>
    		<td><input name="b_password" type="password" id="b_password" maxlength="50" /></td>
    		<td> </td>
    		  <input type="submit" name="button" id="button" value="Login" />
    <? } else { ?>
    <div style="height:30px; display:block;"> </div>
    <p>You are now logged in</p>
    <? } ?>
    Please login/signup to get access to the terminal.

    Your session has timed out.

    Dismiss (the page may not function properly).