Hi, <br>Anyone know how to abort a post operation if the form data is incomplete? do you not specify the action in the form tag but put it in the script to be sent if it passes the validation?? Any ideas gratefully received. thanks!!<br><br>this is what I'm thinking but it doesn't work. <br><FONT FACE=monospace><br>function checkcurrent() {<br> if (form.Patient_ID.value == "" ¦¦ form.Hospital.value == "" {<br> alert("Please enter both the patient ID and the hospital"<br>}else{ <br>(form.action == "send to cgi"<br> }<br> }<br></font>