By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 941 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Updating SQL database once the user leaves the field

P: 1
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!
Jun 22 '06 #1
Share this Question
Share on Google+
1 Reply


dlite922
Expert 100+
P: 1,584
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.
Feb 20 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.