OK now... This is the second forum I am trying to get some help at...

Here is the problem. I am using a form and am trying to get it validated. I keep getting 1 error.

Here is the error message...

Line 143, Column 129: 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 .
…="55f49eb8d3abd26113df129061612135" />✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Here is the error code according to the validator (notice the 'input' tag)...

<form id='ContactForm' action='' method='post'><input type="hidden" name="PHPSESSID" value="55f49eb8d3abd26113df129061612135" />

Now the problem. That is not the code I have written. Here is the code I wrote (notice no 'input' tag)...

<form id='ContactForm' action='<?php $PHP_SELF ?>' method='post'>
<table id='DepartmentTable' cellpadding='0' cellspacing='0' width='600px' border='0'>

Here are some links.

To the form - http://www.yuchniuk.com/contactus.php

To the validator - http://validator.w3.org/

A link to MY coding - http://www.yuchniuk.com/contactus.txt

And a link to the form included in the form - http://www.yuchniuk.com/contactusform.txt

I have tried echo-ing the form tag, moving the form into the table, changing the $PHP_SELF to contactus.php and also to $_SERVER['self']. I am at a total loss.

Thanks in advance

    Write a Reply...