Inserting a Single Record via 2 forms?

Discussion in 'PHP' started by Aids, Feb 20, 2011.

  1. #1
    Hey Guys.

    I'm trying to set up my registration script on one of my websites but I'm not sure how to go about this.

    I've set up the registration on my website and it works fine for those users who want to go and enter their data and then submit it but I also want to have a "FBConnect" feature which allows users to click the button and it retrieves certain data from their facebook profile.

    I've set up the facebook connect fine and I'm able to retrieve the data using the facebook API but there are some fields which should be entered by the user.

    I.e.

    Fields in the database are name, surname, email, DOB, username, password.
    The users name, surname, email, DOB can all be retrieved via the facebook API but username and password should be created by the user.

    I was wondering what the best way to go about this would be, so my question is:
    Which of the following methods is best to use?

    • Allow the user to click the facebook connect button and then pre-populate the fields retrieved through the API.
    • Allow the user to click the facebook connect button and select a temporary username & password for them which can be changed later.
    • Allow the user to click the facebook connect button, store the data from facebook and then ask for their name and password.
     
    Aids, Feb 20, 2011 IP
  2. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i would go with the first option it seems more straight forward
     
    srisen2, Feb 22, 2011 IP
  3. Aids

    Aids Peon

    Messages:
    195
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ok thanks. That's what I thought too :D

     
    Aids, Feb 23, 2011 IP