Forums

Custom Registration Form with form validation (3 posts)

  1. dpcdesigns
    Member
    Posted 1 month ago #

    Ok, i'm pretty new to the coding end of wordpress so bare with me.

    I'm trying to do a one page registration form with wordpress or at the very least get the submition of the form to popup in a thickbox. Right now what I have is the source table code from the wp-login?action=register page and copied it into my page template, right now it works in a sense. I changed the the redirection of wp-login to

    } else {
    		$redirect_to = $_SERVER[HTTP_REFERER];
    
    	}

    So, if the information is entered correctly the first time, it will redirect to the successful registration message with the login box, once they log in it will redirect to the previous page. Problem with this is, is that if they enter in any information wrong it will redirect to the original registration form, with the form validation errors. Once they correct that information and try to log in, it will redirect to the previous page, which would be the original registration page, so it throws them in a loop.

    I would like some sort of ajax style form validation and i found a tut on how to do that tho i'm not sure how well it will work for a registration form (http://net.tutsplus.com/tutorials/wordpress/adding-form-validation-to-wordpress-comments-using-jquery/). If i could get it to pull from the actual registration database to validate so they don't have to leave the page that would be awesome.

    That being said, I've search everywhere for any sort of solution and am kind of surprised I can't find anything. Are there any tutorials on how to go about this or would any one be willing to lend a hand?

  2. MichaelH
    moderator
    Posted 1 month ago #

    Have you considered a plugin instead, such as Register Plus.

    Specific:
    http://wordpress.org/extend/plugins/register-plus/

    Generic:
    http://wordpress.org/extend/plugins/tags/registration

  3. dpcdesigns
    Member
    Posted 1 month ago #

    Well I am using register plus for the extra fields, but as far as keeping it one page and any type of ajax form validation, I'm not seeing any options for that, and i still have to pull the form off of the page and embed it into my one

    heres the link to the page i'm trying to create so you can see what i'm trying to do.
    http://www.univicity.com/spark-hs-presentation

Reply

You must log in to post.

About this Topic