Re: [PHP-DB] save as you type

2004-12-12 Thread Rodrigo Kochenburger
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 html
2 script
3 var submited = false;
4 function unloadConfirm()
5 {
6 if (!submited) {
7 save = confirm(Do you want to apply changes?);
8 if (save) {
9 document.form1.submit();
   10 }
   11 }
   12 }
   13 /script
   14 body onUnload=unloadConfirm();
   15 form name=form1 action=script.php method=post
   16 input type=text name=text1 onChange=submited = 
false;
   17 input type=submit value=Apply changes 
onClick=submited
   18 /form
   19 /body
   20 /html

When the user quits the page and the form wasn't submited yet, it will 
ask to apply.

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


[PHP-DB] Hello

2003-12-16 Thread Rodrigo Kochenburger
Hi everybody,
i'm new in this list, so let me introduce my self.
My name is Rodrigo and i'm from brazil, so sorry if my english isnt
correct.

let me know know if there's anothers brazilians here.

And i'd like to starting using this to ask about some tutorial or
something like that to help me with Software Architecture in PHP using
Oriented Object Programming.

Thanks a Lot.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php