PDA

View Full Version : HTML form - empty field validation


pjking
11-03-2004, 09:39 PM
Hi,

Can anyone help me? I have a HTML form and I need either, Javascript or PHP code, to put on a submit button which recognises an empty form field.

Basically, when a user leaves a form field empty (eg. name) and clicks the submit button, I want an error message to appear (maybe a pop-up window) telling them to fill in all fields.


Thanks
pjk