If the user clicks "OK", the box returns true. Looked thru the rest can't see anything else. First of all, we captured the two values for email and phone number that was sent from the form: var email = pform1.email.value; var phone = pform1.phone.value; Then we declare a Here Infolet wrote ‘id' with
Because they interfere with my PHP code. If it is a drop down list, you can use the VWZ_IsListItemSelected() function frmvalidator.addValidation("city_other","req","Please fill-in the city name", "VWZ_IsListItemSelected(document.forms['myform'].elements['city_list'],'Other')"); VWZ_IsListItemSelected(list_object, item_value) The first parameter is the drop down list object and To start with we will check the that all required fields are filled in by verifying that a field is not left blank and where there are default values entered we In there, error messages will show as alert boxes.