low-rider Posted April 5, 2007 Share Posted April 5, 2007 Hi, I have a form in my php and whenever i try to validate the php as XHTML i get the following errors Error Line 71 column 77: there is no attribute "Language". ...EW=" " startspan --><script Language="JavaScript" Type="text/javascript"><!-- You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. ✉ Error Line 71 column 95: there is no attribute "Type". ...-><script Language="JavaScript" Type="text/javascript"><!-- ✉ Error Line 71 column 112: required attribute "type" not specified. ...e="JavaScript" Type="text/javascript"><!-- 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>. ✉ Error Line 256 column 134: there is no attribute "type". ...ter.php" name="FrontPage_Form1" type="text/css" onsubmit="return FrontPage_Fo ✉ Error Line 256 column 204: there is no attribute "language". ...Page_Form1_Validator(this)" language="JavaScript"> but the thing is that i have not go any type of language or type in the form! this is what i have in in my from tage <form method="get" action="Checkout-better.php" name="products" type="text/css"> can anyone help?? Link to comment https://forums.phpfreaks.com/topic/45691-php-validation-help/ Share on other sites More sharing options...
mescal Posted April 5, 2007 Share Posted April 5, 2007 I think type does not belong in your form tag Link to comment https://forums.phpfreaks.com/topic/45691-php-validation-help/#findComment-221946 Share on other sites More sharing options...
low-rider Posted April 5, 2007 Author Share Posted April 5, 2007 type is gone from there! but if u have a look in the errors....it does say that i need a type tag or attribute, whatever that is! Link to comment https://forums.phpfreaks.com/topic/45691-php-validation-help/#findComment-221948 Share on other sites More sharing options...
mescal Posted April 5, 2007 Share Posted April 5, 2007 can u show your code? Link to comment https://forums.phpfreaks.com/topic/45691-php-validation-help/#findComment-221950 Share on other sites More sharing options...
low-rider Posted April 5, 2007 Author Share Posted April 5, 2007 the entire code for the form??? Link to comment https://forums.phpfreaks.com/topic/45691-php-validation-help/#findComment-221953 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.