XHTML Form Problem
Whether you're a seasoned veteran or a struggling beginner, Web Radiance is the web development and web design forum for you. You'll find answers to all your HTML, CSS, SEO, and Programming needs. Pull up a chair and stay awhile.
XHTML Form Problem
#1
Posted 17 April 2007 - 11:29 AM
<form action="index.asp?function=SEARCH" method="post"/>
<input type="text" name="search" size="14" value="Product Search"/>
<input name="submit" type="submit" value="Go"/>
<form/>
the error reads:
Error Line 66 column 10: required attribute "action" not specified.
<form/>
#2
Posted 17 April 2007 - 11:40 AM
Notice the piece(s) I highlighted in red, remove it:
<form action="index.asp?function=SEARCH" method="post"/>
<input type="text" name="search" size="14" value="Product Search"/>
<input name="submit" type="submit" value="Go"/>
<form/>
...and change that very last line to </form>
You're only supposed to self-close tags that do not contain anything. In the case above, the form element contains the two inputs.
Those two inputs, though, don't contain anything, so they correctly have self-closing forward-slashes.
#3
Posted 17 April 2007 - 11:45 AM
document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
...arch" size="14" value="Product Search"/>
document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
<input name="submit" type="submit" value="Go"/>
This post has been edited by Man2u2uk: 17 April 2007 - 11:46 AM
#4
Posted 17 April 2007 - 12:16 PM
So, now here is a bit more modified code for you:
<form action="index.asp?function=SEARCH" method="post">
<div>
<input type="text" name="search" size="14" value="Product Search"/>
<input name="submit" type="submit" value="Go"/>
</div>
</form>
#5
Posted 17 April 2007 - 01:02 PM
i managed to fix all of the errors in my code code and successfully converted it to XHTML
i tested my code by using the upload feature and it says, that is XHTML
but if i then run the test again using the URL: http://www.ukfishersonlineshop.co.uk
it finds 490 errors
i know why this is caused.. ( its because i use ekmpowershop, and all i have to do it is put the tag [ekm:content] anywhere i want my products to show and my products only show once i have uploaded the page to the server....
what should i do?
the page is fine. but the content fails
#6
Posted 17 April 2007 - 01:21 PM
If I am right, then I'm afraid you're at the mercy of their code. By making your own code as good as possible, you've done a commendable job and should be proud of yourself.
But, for the code that is outside of your control, well... that is just the way it goes.
The only solution would be to <gulp>change your cms/shop application to one that outputs cleaner, more correct, code</gulp>
#7
Posted 17 April 2007 - 01:25 PM
yes you are correct. all of my code is now successfully XHTML Strict
but the content. (which i do not control) has 490 errors and is not XHTML.
can i still put the successful XHTML logo on??
#8
Posted 17 April 2007 - 01:32 PM
Man2u2uk, on Apr 17 2007, 02:25 PM, said:
yes you are correct. all of my code is now successfully XHTML Strict
but the content. (which i do not control) has 490 errors and is not XHTML.
can i still put the successful XHTML logo on??
To be honest, I would not put that logo on. The page, wholly, isn't xhtml valid.
Again, be proud of your efforts, and in the future, consider migrating to a more code-happy cms solution.
#9
Posted 17 April 2007 - 05:21 PM
Like herk said you should be proud to of put the time and effort in validating the code you can control.
When making websites in the future where you control all the code be sure to follow the same example.
#10
Posted 17 April 2007 - 05:58 PM
#11
Posted 17 April 2007 - 11:11 PM
#12
Posted 18 April 2007 - 01:16 PM
i phones up ekm today and they have sent me the css templates for all the shop, so in time i should be able to convert them
#13
Posted 18 April 2007 - 02:00 PM
#14
Posted 18 April 2007 - 02:15 PM
- Catalog Page
- Product Page
- Product Spec Page


Help
This topic is locked
MultiQuote












