Support

Home Forums Event Espresso Premium Using Registration form to update user information

Using Registration form to update user information

Posted: August 28, 2014 at 8:05 am


DJ Angeloni

August 28, 2014 at 8:05 am

This script is registering a user just fine but im having issues updating custom meta data. I have an input box on the website code below:

<div class="event_form_field"><label for="TEXT_14" class="ee-reg-page-questions">Company</label> <input type="text" class="ee-reg-page-questions ee-reg-page-text-input TEXT_14 valid" id="TEXT_14-6-0-1" name="TEXT_14" value=""></div>

So to update the user information i am using this code but it doesn’t seem to update correctly. it is not pulling in the $attendee_data[‘TEXT_14’] content.

update_user_meta( $user_id, 'company', $attendee_data['TEXT_14'] );
if I do this it works.
update_user_meta( $user_id, 'company', 'testing content' );


DJ Angeloni

August 28, 2014 at 8:07 am

By the way “company” is a working meta field in their profile.


Dean

September 2, 2014 at 4:59 am

Hi,

Looking at it, the $attendee_data array doesn’t contain what you need, try using $_POST

The support post ‘Using Registration form to update user information’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso