Return to Snippet

Revision: 24039
at February 19, 2010 07:07 by humanoid


Initial Code
<?php  global $user; ?>

<form action="<?php print "/{$base_path}user/login/?".drupal_get_destination();?>" method="post" id="user-login">
  <span class="login_text">Username:</span><span class="form-required" title="This field is required.">*</span>
  <input type="text" maxlength="60" name="name" id="edit-name" size="22" value="" tabindex="1" class="form-text required" />
  <br />
  <span class="login_text">Password:</span><span class="form-required" title="This field is required.">*</span>
  <input type="password" name="pass" id="edit-pass" size="20" tabindex="2" class="form-text required" />
  <p>&nbsp;</p>
  <p align="left">
    <input type="hidden" name="form_id" id="edit-user-login" value="user_login" />
    <input type="submit" align="middle" name="op" class="form-submit" id="edit-submit" tabindex="3" value="Log in" src="/submit.png" alt="Submit" />
    &nbsp;<a href="/user/register"><br />
    Create New Account</a><a href="/user/password"><br />
    Forgot Your Password?</a></p>
</form>

Initial URL

                                

Initial Description

                                

Initial Title
Drupal 6 custom login block

Initial Tags
drupal

Initial Language
PHP