Jump to content

Site Is Valid Html


boxturt

Recommended Posts

...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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...