Raised This Month: $ Target: $400
 0% 

HTML help 3 Fields Required


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
romi
Member
Join Date: Jul 2014
Location: Far Far AwaY From YoU!
Old 06-13-2015 , 07:55   HTML help 3 Fields Required
Reply With Quote #1

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
PHP 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 FailedPlease 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_mechecked="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} 
romi is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-13-2015 , 11:57   Re: HTML help 3 Fields Required
Reply With Quote #2

You can use PHP or Javascript to do what you want.
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode