The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Need Help Pls
Rome Bushi
post Jun 13 2015, 06:44 AM
Post #1





Group: Members
Posts: 4
Joined: 13-June 15
Member No.: 22,717



Hi , I Want This Login.php to require 3 fields : email , password , and a website url . if any field of these is missing the client can't login . Thank You sad.gif
CODE
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="title">
  <tr>
    <td align="left"><h1>Login</h1></td>
  </tr>
</table>

{if $lockout}
<div align="center">
    <div align="center" style="width:400px;background-color:#FCF9D2;border:1px solid #F9D43E;padding:10px;"><strong>Too Many Incorrect Login Attempts</strong><br />
      Please wait 5 minutes before trying again.</div>
</div>
{elseif $task != 'password'}
<div align="center">
  {if $login_error}<div align="center" style="width:400px;background-color:#FCF9D2;border:1px solid #F9D43E;padding:10px;"><strong>Login Failed. Please Try Again.</strong><br />
      Your IP has been logged and admins notified of this failed attempt.</div><br />{/if}
  <form action="process.php" method="post">
    <input type="hidden" name="task" value="login" />
    <input type="hidden" name="return" value="{$return}" />
    <table border="0" cellpadding="0" cellspacing="10">
      <tr>
        <td align="right">Email:</td>
        <td><input type="text" name="email" class="text" size="30" value="{$email}" /></td>
      </tr>
      <tr>
        <td align="right">Password:</td>
        <td><input type="password" name="password" class="text" size="30" value="{$password}" /></td>
      </tr>
      <tr>
        <td colspan="2" align="center"><label for="rememberme"><input type="checkbox" name="rememberme" id="rememberme"{if $remember_me} checked="checked"{/if} /> Remember my email</label></td>
      </tr>
      <tr>
        <td colspan="2" align="center"><input type="submit" value="Login" class="button" /></td>
      </tr>
    </table>
  </form>

  <br />
  <a href="login.php?task=password">Forgot Password?</a>
</div>
{else}
<div align="center">
  {if $success == 'Yes'}<div align="center" style="width:400px;background-color:#FCF9D2;border:1px solid #F9D43E;padding:10px;"><strong>Password Sent.</strong><br />
      Your password has been reset and emailed to you.</div><br />
  {elseif $success == 'No'}<div align="center" style="width:400px;background-color:#FCF9D2;border:1px solid #F9D43E;padding:10px;"><strong>Email Not Found.</strong><br />
      Your IP has been logged and admins notified of this failed attempt.</div><br />
  {/if}
  <form action="process.php" method="post">
    <input type="hidden" name="task" value="password" />
    <table border="0" cellpadding="0" cellspacing="10">
      <tr>
        <td align="right">Email:</td>
        <td><input type="text" name="email" class="text" size="30" value="" /></td>
      </tr>
      <tr>
        <td colspan="2" align="center"><input type="submit" value="Send Password" class="button" /></td>
      </tr>
    </table>
  </form>
  <br />
  <a href="login.php">Back to Login</a>
</div>
{/if}


This post has been edited by Rome Bushi: Jun 13 2015, 06:48 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 06:36 AM