Forum Moderators: open
My source code:
form method="post" action="http://www.mysite.com/cgi-bin/survey/survey.pl">
My error message:
document type does not allow element "FORM" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME" start-tag
Can anyone tell me what the problem is? I'm pretty new to CGI scripts.
Thanks!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Here is some of the code before and after the error. I have no other validation errors on this page except for the one mentioned in my earlier post.
<table cellspacing="0" cellpadding="0" width="50%">
<tr>
<td align="center"><a HREF="pkt015.htm">
<img BORDER="0" SRC="images/pkt015.jpg" ALT="Best Friends" width="100" height="102"></a></td>
<td align="center"><h4 CLASS="scpbody"><br>New!<br>Best Friends<br>Album!</h4>
</td>
</tr>
</table><BR>
<H4 CLASS="scpbody"><a href="#prod_name">View Product Categories</a><BR><BR>
Find out about new digital scrapbooking<br>products by <a href="#news">signing up</a> for our<br>monthly newsletter below!<BR></H4>
<a name="#prod_name"><IMG SRC="images/flwd.jpg" ALT="" WIDTH="300"></a><BR><BR>
<!-- start here -->
<H4 CLASS="scpbody">When should new holiday layouts be added?<br>
<form method="post" action="http://www.mysite.com/cgi-bin/survey/survey.pl">
<input type="hidden" name="id" value="1">
<input type="radio" name="response" value="1">Before the Holiday<br>
<input type="radio" name="response" value="2">After the Holiday<br>
<input type="radio" name="response" value="3">Doesn't Matter<br>
<input type="submit" value="Vote!"></form></H4>
<!-- end here --></DIV>
<TABLE BORDER="0" CELLSPACING="0" WIDTH="100%">
<TR>
<TD WIDTH="50%"><DIV ALIGN="center"><A HREF="ppa.html">
<IMG SRC="images/pktbg.jpg" ALT="Pocket Photo Albums" BORDER="0" width="230" height="100"></A></DIV></TD>
Thanks for taking a look!
Palmpal
One way to check your document outline is to feed the site through [validator.w3.org...] ticking the box show outline, scroll down past the error list to see your outline.