/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?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> </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" /> <a href="/user/register"><br /> Create New Account</a><a href="/user/password"><br /> Forgot Your Password?</a></p> </form>