rajmohan Posted September 2, 2006 Share Posted September 2, 2006 i am using java script function in php i.e i am having more text fields and i want to validate in single function whether the user entered or not . if the user dosent fill it alert message should display other return true.fields are username,password,confirmpassword,age,date,etc....i want to pass this name to a function that should check it and return backwho to write it function validate( // here the names){if(document.form1.?.value=""){ alert("Enter thefield"+?); return false;}return true;} Link to comment https://forums.phpfreaks.com/topic/19454-js-doubt-cannot-able-to-solve-help-meee/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.