The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> 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
CharlesEF
post Jun 13 2015, 07:02 AM
Post #2


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



Are you using client side code for this (javascript) or server side code (ASP, PHP, Java Server Pages, etc....)?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Rome Bushi
post Jun 13 2015, 07:03 AM
Post #3





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



I really dont understand what u mean. im a beginner. this is a login.tpl file. and when i open this login page it is as /login.php.

This post has been edited by Rome Bushi: Jun 13 2015, 07:28 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post Jun 13 2015, 08:01 AM
Post #4


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



I have no idea what a .tpl file is. Since I see some kind of code mixed in with the HTML I must 'assume' you are using some kind of program to generate the HTML?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Rome Bushi
post Jun 13 2015, 08:08 AM
Post #5





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



a .tpl file is kind of tempelate. no im not using any software to generate HTML. i wondered if anyone can help me doing this request on that code, it will be very helpfull for me. thank you very much.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post Jun 13 2015, 08:27 AM
Post #6


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



So then, the code I see must be PHP. Attach the entire login.tpl file to a post and I will look at it. No promises. How does login.tpl get changed into login.php?

This post has been edited by CharlesEF: Jun 13 2015, 09:07 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Rome Bushi
post Jun 13 2015, 09:34 AM
Post #7





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



QUOTE(CharlesEF @ Jun 13 2015, 08:27 AM) *

So then, the code I see must be PHP. Attach the entire login.tpl file to a post and I will look at it. No promises. How does login.tpl get changed into login.php?

no problem . Fixed. wink.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Sam A
post Jun 18 2015, 04:26 AM
Post #8


Novice
**

Group: Members
Posts: 26
Joined: 22-April 15
Member No.: 22,515



Use Sublime Text editor which gives you proper format coding and if any thing remains left than it immediately indicate in that editor.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

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: 18th April 2024 - 04:58 AM