Re: [PHP-DB] save as you type
You could do it with javascript, but its stupid since it'll consume a lot of processes (1 for each character typed). Tell the users to not forget it. Or as alternative: 1 2 <br> 3 var submited = false;<br> 4 function unloadConfirm()<br> 5 {<br> 6 if (!submited) {<br> 7 save = confirm("Do you want to apply changes?");<br> 8 if (save) {<br> 9 document.form1.submit();<br> 10 }<br> 11 }<br> 12 }<br> 13 14 15 16 17 Rodrigo K -Original Message- From: Matthew Perry [mailto:[EMAIL PROTECTED] Sent: 12 December 2004 05:12 To: [EMAIL PROTECTED] Subject: [PHP-DB] save as you type Is there a way to make an input box save data into a database as users type? My users keep forgetting to press my "apply changes" buttons. Matthew -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] save as you type
Matthew Perry wrote: Is there a way to make an input box save data into a database as users type? My users keep forgetting to press my "apply changes" buttons. Educate your users or use some JavaScript auto submit workaround. Not a PHP issue, though... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] save as you type
You could use JavaScript onblur executes when the user leaves the box, and will submit the form HTH Peter > -Original Message- > From: Matthew Perry [mailto:[EMAIL PROTECTED] > Sent: 12 December 2004 05:12 > To: [EMAIL PROTECTED] > Subject: [PHP-DB] save as you type > > > Is there a way to make an input box save data into a database as users > type? My users keep forgetting to press my "apply changes" buttons. > Matthew > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] save as you type
Is there a way to make an input box save data into a database as users type? My users keep forgetting to press my "apply changes" buttons. Matthew -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php