Forums

Invalid code

lw_d 02 Jan, 2009
Hi all,

Great component, just have one thing I am trying to correct, basically, I get the following when validating my form:

Error: 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

The code in question is:

line 105 column 174 - Error: 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 type="hidden" name="c84a96c83bcdf96ef802a6585d2a3b89" value="1" />

This seems to be generated by CF, not from the code I entered for the form. Looks like I just need to wrap it in <p></p>.... anyone know where I can find this?

Thanks
GreyHead 02 Jan, 2009
Hi lw_d,

I don't think that an input tag needs to be wrapped in anything. Maybe there's an incomplete tag earlier?

Is the page on-line? What are you validating with? and to which doctype?

Bob
lw_d 02 Jan, 2009
Thanks for the response, I'm actually working locally at the minute, I will hopefully be uploading next week.

I am validating with the Strict doctype, using http://validator.w3.org

I have checked the rest of my template, doesn't seem to be any open tags, I think for the strict doctype.

Thanks
GreyHead 02 Jan, 2009
Hi lw_d,

In that case please will you take a form backup using the icon in the form manager and email it to the address in my sig and I'll take a look.

Bob
GreyHead 02 Jan, 2009
Hi lw_d,

Sorry, I get the same validation error message but can't see what might be causing it. (I suspect a bug in the validator!)

Bob
lw_d 02 Jan, 2009
No worries, I won't worry to much about it, let me know if you find a fix though.

Thanks
Max_admin 02 Jan, 2009
Hi all, adding this field inside <p></p> will fix the validation error ? we can hack the chronocontact.html.php to do this! let me know.

Regards
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
lw_d 03 Jan, 2009
Hi Max,

I took a look in the said file but couldn't find the correct place to put the <p> tags, any chance you can help, I am using the latest version of CF.

Thanks
GreyHead 03 Jan, 2009
Hi Lw_d,

For the moment just edit your form html and put them round the hidden input near the end.

Bob
lw_d 03 Jan, 2009
Hi, I do not seem to have any hidden input in my form, the hidden input is generated by CF.

Sorry if I have misunderstood you.
GreyHead 03 Jan, 2009
Hi lw_d,

This code????
<input type="hidden" name="c84a96c83bcdf96ef802a6585d2a3b89" value="1" />

Bob
Max_admin 04 Jan, 2009
Hi,

This is the line which will generate it :

<?php echo JHTML::_( 'form.token' ); ?>	


Regards
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.