Page 1 of 1

Using another form to pass registration data

PostPosted: August 18th, 2010, 10:24 pm
by ericrasch
I would like to use my own form for creating the User Registration fields. More specifically, I'd like to use Gravity Forms to create the registration form, then pass that info into s2Member. I'm assuming I can't just directly submit my info into s2Member, but rather I can pass the data from the submitted Gravity Form into the s2Member registration page. I've seen Jason mention having your own form submit to /wp-login.php?action=register, which I can do in Gravity Forms, but it doesn't seem to actually pass any data through.

How do I set it up to pass the data to the s2Member registration?

Re: Using another form to pass registration data

PostPosted: August 27th, 2010, 12:05 pm
by Jason Caldwell
Hi Eric. Thanks for your patience.
I'm very sorry for the delayed response.

OK. This will work.
However, you'll need to prepare your Custom Fields under:
s2Member -> General Options -> Custom Registration Fields

Then, just submit the form to:
/wp-login.php?action=register

Your Custom Fields MUST be submitted with these variable names.
$_POST["ws_plugin__s2member_custom_reg_field_".$field_var]

If your Custom Field is:
Company Name

the field var is:
company_name
( e.g. $_POST["ws_plugin__s2member_custom_reg_field_company_name"] )

s2Member replaces all spaces with underscores.

Re: Using another form to pass registration data

PostPosted: September 5th, 2010, 1:58 am
by thedigitalfox
I would very much like to do this, is it possible to give some more details on how you make this happen?

Derek

Re: Using another form to pass registration data

PostPosted: September 7th, 2010, 8:21 pm
by Jason Caldwell
Hi Derek. Thanks for your inquiry.

There really isn't much to it.
You just create a form that submits POST variables to:
/wp-login.php?action=register

You can use your own existing form located at:
/wp-login.php?action=register
as a reference model if you like.

You may also want to have a look at this thread;
which covers some advanced topics:
viewtopic.php?f=4&t=657