表单提交问题 <form><input type='text' name='test'><input type='button' onclick='this.form.submit()'></form><?echo $test;?> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <body><form action="cc.php" method=post name=form><input type='text' name='test'><input type='submit' onclick='document.form.submit()'></form><?echo $_POST['test'];?></body> <body><form action="cc.php" method=post name=form><input type='text' name='test'><input type='button' onclick='document.form.submit()'><input type="button"></form><?echo $_POST['test'];?></body> 安全一点的话就:<body><form action="cc.php" method=post name=form><input type='text' name='test'><input type='text' name='test2'><input type='button' onclick='document.form.submit()'><input type="button"></form><?if(isset$_POST['test']) { //add this to check echo $_POST['test']; echo $_POST['test2'];}?></body> 求高手解决 PHP登录页面与子页面代码写在一起后的问题 mysql 的COUNT(*) 返回的记录问题 初学php的送分题 请教装了php-5.2.5-win32-installer.msi后,选择apach,如何才能运行php网页呢? 求php字节转字符的函数 frame 内表单步步提交问题 问一下使用php5的人多不多 怎样在php中执行python script? 填写在表单的内容怎么样送入数据库呀? 我的SESSION!帮帮我 在iframe框架里的内容,自动换行,提交表单时,能记住其换行符吗? 请教: 树遍历问题 [**算法高手请进**]
<form action="cc.php" method=post name=form>
<input type='text' name='test'>
<input type='submit' onclick='document.form.submit()'>
</form>
<?
echo $_POST['test'];
?></body>
<form action="cc.php" method=post name=form>
<input type='text' name='test'>
<input type='button' onclick='document.form.submit()'>
<input type="button">
</form>
<?
echo $_POST['test'];
?></body>
<body>
<form action="cc.php" method=post name=form>
<input type='text' name='test'>
<input type='text' name='test2'>
<input type='button' onclick='document.form.submit()'>
<input type="button">
</form>
<?
if(isset$_POST['test']) { //add this to check
echo $_POST['test'];
echo $_POST['test2'];
}
?></body>