Jasdeep Singh Posted December 23, 2013 Share Posted December 23, 2013 Hi I'm working on creating custom google+ sign in code for my site. I've come long way from nothing but now i am stuck at 'where & how' to store the data that is recieved from google, such as, first name, last name, email, gender,etc for the registration process. I'm new to PHP, so if you could provide me with any piece of code for saving customer details to database or any entry fields that it is supposed to then it would be great. & also do i need to add logout command on default logout button for google account logout or is the normal button sufficient to do that. Thanks In Advance.. Link to comment Share on other sites More sharing options...
vekia Posted December 24, 2013 Share Posted December 24, 2013 you have to create object Customer; $custmer = new Customer; then define variables defined in object definition in class classes/Customer.php for example: $customer->firstname = "John"; $customer-> lastname = "Doe"; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now