Drupal 6 custom login block


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php global $user; ?>
  2.  
  3. <form action="<?php print "/{$base_path}user/login/?".drupal_get_destination();?>" method="post" id="user-login">
  4. <span class="login_text">Username:</span><span class="form-required" title="This field is required.">*</span>
  5. <input type="text" maxlength="60" name="name" id="edit-name" size="22" value="" tabindex="1" class="form-text required" />
  6. <br />
  7. <span class="login_text">Password:</span><span class="form-required" title="This field is required.">*</span>
  8. <input type="password" name="pass" id="edit-pass" size="20" tabindex="2" class="form-text required" />
  9. <p>&nbsp;</p>
  10. <p align="left">
  11. <input type="hidden" name="form_id" id="edit-user-login" value="user_login" />
  12. <input type="submit" align="middle" name="op" class="form-submit" id="edit-submit" tabindex="3" value="Log in" src="/submit.png" alt="Submit" />
  13. &nbsp;<a href="/user/register"><br />
  14. Create New Account</a><a href="/user/password"><br />
  15. Forgot Your Password?</a></p>
  16. </form>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.