Forms, help please - How do I make an information required on a form? (Posted by stephany)
I have forgotten how to make the information in the input field required, such as if they click send or submit with out the info entered an error will pop up requesting they enter the info or that the info is missing. Any help would be greatly appreciated.
Thank you,
Stephany
Anonymous posted this at 03:00 — 25th October 1999.
They have: 5,633 posts
Joined: Jan 1970
function checkCompletion() {
if (document.FORM NAME.INPUT NAME.value == "") {
alert("Form has not been fully filled out yet");
}
else {
document.FORM NAME.submit;
// I'm not sure if above line works???
}
}
----------
[email protected]
http://go.to/hass
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.