PHP + Javascript, immediate database update

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone,

I have a webform which my users are expecting to act like a Windows program,
they only need to check the box and it is automatically written to the
database.

So I'd like to use a combination of javascript, like this, but it isn't
quite elegent enough:

- Tick the box.
- Javascript opens up a popup window, SQL query is made, popup window closes
again

Or a second method:

- Register an onexit() function, and auto-submit the form.

The only problem there is to remember to redirect them to their intended
destination, after having submitted the form. (i.e. they pressed back,
forward, or entered in another URL).

Can anybody point me in the right direction....?

Many thanks,
Steve

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux