Simple registration to access forms (3 posts)

  1. Panther Print
    Posted 5 years ago #

    Hi all.

    I'm trying to setup a form that can be submitted and then amended. I'm using Formidable Forms and it requires a user to be logged in to do this.

    I want a method of logging-in /registering that happens without going to to the WP-user profile page, so that the customer can get on with their form smoothly.

    Any advice / examples?


  2. Jeremy Clark
    Posted 5 years ago #

    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.

  3. Panther Print
    Posted 5 years ago #

    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?


Topic Closed

This topic has been closed to new replies.

About this Topic