Ok, here’s the problem:
I am having validation issues with my page. Here’s the code:
[code=php]
echo “<form action=”index.php?section=category&subsection=process-add” method=”post”>”;
echo “<label for=”name”>Name (max 30 char)</label>”;
echo “<input type=”text” name=”name” size=”25″ maxlength=”30″ />”;
echo “<br />”;
echo “<label for=”description”>Description (max 255 char)</label>”;
echo “<input type=”text” name=”description” size=”40″ maxlength=”255″ />”;
echo “</div>”;
echo “</div>”;
echo “<div class=”standard_box” id=”attributes” style=”width: 149px; float: left; margin-bottom: 5px;”>”;
$parent_cat_query = “SELECT `name` FROM `cobalt_categories` ORDER BY `name` ASC”;
$parent_cat_result = mysql_query($parent_cat_query);
echo “<h3><img src=”../images/cobalt_categories_attributes.png” alt=”Attributes” /></h3>”;
echo “<h4>ID#: $newid - ” . date(“m.d.y”, time() – 3600) . “</h4>”;
echo “<select>”;
echo “<option>Parent Category…</option>”;
while ($cat = mysql_fetch_array($parent_cat_result))
{
echo “<option value=”” . stripslashes($cat[‘name’]) . “”>”;
echo(stripslashes($cat[‘name’]));
echo “</option>”;
}
echo “</select>”;
echo “<br />”;
echo “<h4>Active</h4>”;
echo “<input type=”checkbox” checked=”checked” style=”border: 0;” />”;
echo “</div>”;
echo “<div style=”text-align: right; margin-right: 1px;”>”;
echo “<input type=”submit” value=”submit” /> ”;
echo “<input type=”reset” value=”reset” />”;
echo “</div>”;
echo “</form>”;
The errors I get are these:
“line 40 column 1751 – error: discarding unexpected </form>”
“line 40 column 413 – warning: missing </form>”
Anyone have any ideas what is going on with this?
Thanks, guys,
Will