Support » Fixing WordPress » Simple registration to access forms

Viewing 2 replies - 1 through 2 (of 2 total)
  • I use this form for my theme you can just edit your theme a place it where ever you like.

    <form action="<?php bloginfo('wpurl'); ?>/wp-login.php" method="post" id="loginform">
    	<label>Username:<br /><input type="text" id="user_login" class="text" name="log"/></label><br />
    	<label>Password:<br /><input type="password" id="user_pass" class="text" name="pwd"/></label><br />
    	<input type="submit" id="wp-submit" value="Log in" />
    	<input type="hidden" name="redirect_to" value="<?php echo "http://".$_SERVER["SERVER_NAME"].$_SERVER['REQUEST_URI']; ?>" />
    	<input type="hidden" name="testcookie" value="1" />

    This will allow the user to log in and then be redirected back to the page they were on.

    Thanks for the super-fast response.

    I’m not clear on this… I still have much to learn about WordPress….

    I have tried the code (very quickly) and it returns a -404 on a known password…. So I think I’m doing something wrong… But I do need a way for new users to register as well. Is there a plugin to allow this?


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Simple registration to access forms’ is closed to new replies.