store the uncompleted details?

Discussion in 'PHP' started by vetrivel, Oct 13, 2009.

  1. #1
    Hi,
    I have a register form with around 20 fields in that form.
    So if customer enters the details and hit the submit button then it will added to the database.
    -------
    queries:

    ->Now i want to store the details of the customer who not completed the details .Say for example :if some one comes in and enter few details and then leave the site .
    I need to store that details too and he returns again i need to show the details again to him.

    Is it possible?
    How to accompany this ?
    Anybody ahve any idea?
    Please advice me?
     
    vetrivel, Oct 13, 2009 IP
  2. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You could probably do this via javascript (ajax). When the user goes to the next tab field, there will be a onblur event that you could use to send the field data to your server and save (attached to a specific user cookie).
     
    premiumscripts, Oct 13, 2009 IP
  3. orionoreo

    orionoreo Peon

    Messages:
    145
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    my idea of this would be cookies and javascript... javascript is not my areaas of expertise tho
     
    orionoreo, Oct 13, 2009 IP
  4. vetrivel

    vetrivel Peon

    Messages:
    147
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ok.Using ajax to set cookie is valid point.nice idea.
    I will try to implement it and get back you.
    Thanks friends.
     
    vetrivel, Oct 13, 2009 IP
  5. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #5
    my only question for this is why do you want to save the details before you have them submit?
     
    JAY6390, Oct 13, 2009 IP
  6. vetrivel

    vetrivel Peon

    Messages:
    147
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    There may be different reason for the customer to leave the site in the middle.
    So what i would like to do this.
    If they incomplete the process than i would like to intimate them that it is not completed.So if they interested they can continue it again .
    It will increase the conversion of the site .
    Got it?
    Am i right?
     
    vetrivel, Oct 22, 2009 IP
  7. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #7
    I would suggest to divide the form in logical segments. And when one segment is filled up, submit that data via ajax to server and store it in a different table with session and ip details otherwise your server will be flooded with so many ajax requests from each field.

    Conversion this way may increase but also think of user's perspective, he would get a feel of his details being stolen regardless his wish to submit it or not, to avoid this, flash some kind of message to user or think of some other way of handling it.
     
    mastermunj, Oct 22, 2009 IP
  8. shortcut

    shortcut Peon

    Messages:
    116
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yes, that's possible only using ajax. Use ajax script and save the data that the user is entering. You can also save this data in the session or database
     
    shortcut, Oct 23, 2009 IP
  9. xenon2010

    xenon2010 Peon

    Messages:
    237
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    you can use cookies and some JS and php work..
    thats will do it..

    for instance:
    - user enters details
    - Javascript saves entered data in realtime on a cookie..
    - cookie will be stored inside user's browser.

    now the user when he/she returns the cookie will automatically appended by browser..
    - browser reads saved cookie.
    - fill up all fields with PHP or Javascript..

    thats how you do it..
     
    xenon2010, Oct 23, 2009 IP