Jump to content

[SOLVED] need help with form validation


Jago6060

Recommended Posts

I am very unfamiliar with JavaScript and I need a simple function that simply checks whether a field is empty or not.  I tried this but ti didnt work. Any help would be great.

 

function nameIsBlank() {
var name=document.inquiry.name.value;
if (name != null) return true;
else alert ('Please enter your name!')
return false;
}

Link to comment
https://forums.phpfreaks.com/topic/104028-solved-need-help-with-form-validation/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.