Hi,

Since php is a server side language, you can not use it to monitor what is
happening client side. You should be able to do it in javascript, using the
onChange event and check the stringlength and then call submit. Similarly
you can advance the tab key key using the focus function.

hth Henrik Hornemann

-----Oprindelig meddelelse-----
Fra: H Marc Bower [mailto:[EMAIL PROTECTED]]
Sendt: 7. oktober 2002 13:48
Til: [EMAIL PROTECTED]
Emne: [PHP-WIN] Auto-submit form


Is there a way (preferrably using php... but if javascript is necessary and
some kind soul knows how I will use it) to have a form auto-submit when a
field is 'full'?  I want to be able to scan barcodes of a set length and
have a form be automatically submitted to store the information in the
database when the barcode field is scanned.  Since I'm asking potentially
off-topic question anyway, how do I make the fields advance without using
the tab key when one field is 'full'?  For instance, I want to scan a
library card barcode, have the focus shift to the piece barcode field, scan
the book barcode, then be auto-submitted once the book barcode is scanned.

TIA,

(V)

-=-=-=-=-
No testimony is sufficient to establish a miracle unless the testimony be of
such a kind that its falsehood would be more miraculous than the fact which
it endeavours to establish. - David Hume
-=-=-=-=-



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

Reply via email to