How to Submit Registration and Redirect
-
Trying to pass some input info over to another form right after full registration that users need to fill out before being able to login to the site. The email and username are sent over to sync accordingly. I’ve gotten this far…but I guess the redirect cancels the form submit and the wp user needs to exist so they can login after the 2nd external form. Any suggestions on how to ensure the form gets submitted before redirecting to the external url?
<script type="text/javascript"> $(function() { $('form#signup-form').submit(function (e) { e.preventDefault();//prevent the default action $.ajax({ type: "POST", /*url:*/ /* data:*/ success: function (msg) { var name = jQuery('#signup_username').val(); var email = jQuery('#signup_email').val(); var queryString = "https://xxxxxx.com?username2=" + name + "&email2=" + email; window.location.replace(queryString); }, error: function () { alert("error"); } }); }); }); </script>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.