register user to another db/table
-
Hi,
I have what I think is a unique request, which I’m actually trying to sort myself, but without any luck so far. What I’m trying to do is get the registration form to insert a new user not only to the wp-users table, but to a separate table (well in the future to a separate database, but once the table is done, I guess changing servers won’t be an issue).
My problem is, I don’t know how to get the posted data into a separate php file, where I would do the insert. I tried to copy the names of the form fields, make them an array and use those to insert, but that didn’t work (no errors if I run that php, but nothing is inserted. If I fill in the data manually, the insert works, so the php file is correct).
I guess the problem is I would need to include something, but I don’t know what. Maybe you can help me with this.
Thanks,
Kacsa
- The topic ‘register user to another db/table’ is closed to new replies.