brentman Posted September 23, 2014 Share Posted September 23, 2014 (edited) Say there is a complex opt in process where people start to enter their data but certain questions stop them where they close out of the page. They already entered their data and I feel there is a way to grab it and post it to mysql even though they do not click submit. How would this be done? A super simple example (proof of concept) or a link to a tutorial would be very useful. Edited September 23, 2014 by brentman Quote Link to comment https://forums.phpfreaks.com/topic/291234-collect-form-data-when-user-enters-data-not-on-submit/ Share on other sites More sharing options...
CroNiX Posted September 23, 2014 Share Posted September 23, 2014 (edited) javascript+ajax. Using jQuery, it would be as simple as when a form element blurs, use $(form).serialize() and send the data via POST using ajax to a url that would save it. Edited September 23, 2014 by CroNiX Quote Link to comment https://forums.phpfreaks.com/topic/291234-collect-form-data-when-user-enters-data-not-on-submit/#findComment-1491871 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.