<!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>news</title> </head> <body> <form action='#' method='post'> <input type="text" name='aa[]' disabled="disabled" value='11'> <input type="text" name='aa[]' disabled="disabled" value='t11t'> <input type="text" name='aa[]' readonly="readonly" value='aa'> <input type="submit" value="提交" name="submit"/> </form> </body> </html> <?php /**无输出值*/ @print_r($_POST['aa']);
?>
只要改成disabled="disabled" 改成readonly="readonly"就可以了
<table>
<input type='hidden' name='test'>
<tr>
</tr>
</table>
如果把整个table用js输出的时候会把<tr><td>标签过滤掉的,这么点破事搞了我半天了。
给按钮添加链接
<input type='button' οnclick="javascript:window.location.href='abc.html';">