Updating SQL database once the user leaves the field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rehseboy
    New Member
    • Jun 2006
    • 1

    Updating SQL database once the user leaves the field

    Hello all!

    I'm new here... and new to most of the technologies I am trying to string together into a working interface. My background is in C/C++, so this whole web development thing is new to me, especially when I have to string together 3 or more different technologies to do what I want...

    Anyway...

    I am attempting to update a SQL database when a user leaves a textbox. Really, the optimal solution would be to update the database in realtime, so that no changes are ever lost (this is a safe database, no one will be using it with malicious intent... locally hosted for local access only, security not an issue). After much searching, I have been unable to find any way to do that, but it seems like I should be able to update the database once the user leaves the field (with a Javascript onBlur event, I would assume). However, I can't seem to figure out how to leverage my PHP, MySQL, and Javascript commands to do what I want. Can anyone help me out here?

    Thanks!
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    Originally posted by rehseboy
    Hello all!

    I'm new here... and new to most of the technologies I am trying to string together into a working interface. My background is in C/C++, so this whole web development thing is new to me, especially when I have to string together 3 or more different technologies to do what I want...

    Anyway...

    I am attempting to update a SQL database when a user leaves a textbox. Really, the optimal solution would be to update the database in realtime, so that no changes are ever lost (this is a safe database, no one will be using it with malicious intent... locally hosted for local access only, security not an issue). After much searching, I have been unable to find any way to do that, but it seems like I should be able to update the database once the user leaves the field (with a Javascript onBlur event, I would assume). However, I can't seem to figure out how to leverage my PHP, MySQL, and Javascript commands to do what I want. Can anyone help me out here?

    Thanks!
    You can do so with AJAX.

    Google provides great tutorials how to get this working!

    type in AJAX Tutorial and look into w3schools, tizags and others.

    Comment

    Working...