brentman Posted September 23, 2014 Share Posted September 23, 2014 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. 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 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. 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
Archived
This topic is now archived and is closed to further replies.