boxturt Posted August 14, 2008 Posted August 14, 2008 ...and I just don't get it. (mods - feel free to move topic) Here is the error: Validation Output: 1 Error 1. Error Line 55, Column 49: required attribute "ACTION" not specified. <FORM onSubmit="return form_validation(this)"> The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element. Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>. I don't understand this one - been staring at it for what seems like hours. Here's the whole thing, first part in < head > and second part in < body >: ><script language = "javascript" type = "text/javascript"> <!--Hide from older function form_validation(vform) { if (vform.Agreement.checked == false) { alert ('To view your report, please read and accept the disclosure and click submit.'); return false; } else { popup1 = window.open("h**p://example.com/login.html", "popup1", "top=50,left=50,width=450,height=350,resizable=1,toolbar=1,scrolling=0,location=0, status=0,menubar=0") } } //End hiding--> </script> ><FORM onSubmit="return form_validation(this)"> <p align="center"><INPUT TYPE="checkbox" NAME="Agreement" VALUE="I Agree">I have read and accept the terms as explained above.</p> <p align="center"><INPUT TYPE="submit" VALUE="View Your Report"></p> <p></p> </form> Suggestions from fresh eyes would be appreciated. Thanks Ty Quote
btrfld Posted August 14, 2008 Posted August 14, 2008 Ty - The validation error is telling you that all <form> tags must have the action attribute. I don't think it requires a value, but the attribute must be there. Try this: <FORM action="" onSubmit="return form_validation(this)"> Does that make it validate? Quote
boxturt Posted August 14, 2008 Author Posted August 14, 2008 Thank you Jim, that did it. Boy do I feel silly. I just didn't see it and couldn't figure out what they were trying to tell me. That happens with my wife too..... Thanks again Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.