|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I write javascript to check the form. If we keep any field empty it gives error.( java script alert box).
But when we say "ok" it directly starts my servlet from form action. If field is empty and we press "ok" the servlet should not start. help with small source code of validation. |
|
#2
|
|||
|
|||
|
put
return false; as the last thing in your validation function ------------------ Sglane sglane@yahoo.com ICQ : 16225268 Yahoo! : sglane "Save trees, eat beaver." <?y!php3++??> http://www.directnic.com/ http://www.fastband.net/~gabe/ |
|
#3
|
||||
|
||||
|
or try the Automatic validation script generator @
http://www.firepages.com.au/fvalid.htm ------------------ Simon Wheeler FirePages -DHTML/PHP/MySQL |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Field Validation |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|