我做了一个表格。为什么不显示提交 ( enviar ) 和重置 ( restablecer ) 按钮?如果我删除 PHP 代码,它们会出现。为什么?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Documento sin título</title>
</head>
<body>
<div>
<form action="" id="noti-form"method="post" enctype="multipart/form-data" name="noticia">
Antetítulo de la Noticia<br />
<input type="text" name="ante" size="70" id="ante" class="inputbox" />
<br />
Título de la Noticia<br />
<input type="text" name="titulo" size="70" id="titulo" class="inputbox" />
<br />
Subtítulo de la Noticia<br />
<input type="text" name="sub" size="70" id="sub" class="inputbox" />
<br />
Autor:<br />
<input type="text" name="autor" size="30" id="autor" class="inputbox" />
<br />
Texto de la Noticia<br />
<div align="center">
<textarea id="elm1" name="noticia" class=".noticia" rows="15" cols="80" style="width: 80%"></textarea></div>
<br />
<input type="file" name="foto" id="foto" />
<br />
<?php
echo '<select class="chosen" name="tags[ ]" multiple="true" style="width:400px;">';
$query=$database->tags();
foreach ($query as $data) {
echo '<option value="'.$data['tag'].'">'.$data['tag'].'</option>';
}
echo'</select>';
?>
<input type="submit" name="enviar" value="Enviar" class="button" />
<input type="reset" name="button" id="button" value="Restablecer" class="button" />
</form>
</div>
</body>
</html>