怎样让一个表单提交到不同的页面? 修改action就可以了form1.action="a.php"form1.sumbit(); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 分别写两个Form,将按钮分开放在不同的Form中,action不同罢了。<?php...print("<form name=\"form1\" method=\"post\" action=\"submit.php\">\n");print("<input type=\"submit\" name=\"Submit\" value=\"Submit\">\n");print("</form>\n");print("<form name=\"form2\" method=\"post\" action=\"cancel.php\">\n");print("<input type=\"submit\" name=\"Submit2\" value=\"Cancel\">\n");print("</form>\n");...?>good luck. 一个表单,触发不同事件,如gzh_seagull(不可) 所说 借楼主地方用一下,那在一个from中可不可以提交到两个地方? 用按钮:<input type="button" name="a" value="a" onClick=“{ document.form1.action="a.php";form1.sumbit();}”><input type="button" name="b" value="b" onClick=“{ document.form1.action="b.php";form1.sumbit();}”> 有那么麻烦么,我们老是这么用:<?if($diction=='true') $filename='myfile.php';else$filename='yourfile.php';?><form name="form1" method="post" action="<?echo $filename;?>"> php+xml数据存储 大家好,我是新来的 求php配置的mysql版本 重装不起了 快疯了!~急! 图片路径问题 (求助)检测用户名是否在数据库失败!! 程序移植到linux 下就不能用了?谁能帮帮我? PHP 报错解决?~~~~~~ 讨论:Win32下的PHP用不用把.dll复制到相应的目录下 办公自动化!!! 在PHP中如何连接字符串和变量? 初学php,包含文件的问题。 mark!!!
<?php
...print("<form name=\"form1\" method=\"post\" action=\"submit.php\">\n");
print("<input type=\"submit\" name=\"Submit\" value=\"Submit\">\n");
print("</form>\n");
print("<form name=\"form2\" method=\"post\" action=\"cancel.php\">\n");
print("<input type=\"submit\" name=\"Submit2\" value=\"Cancel\">\n");
print("</form>\n");...?>good luck.
<input type="button" name="a" value="a"
onClick=“{ document.form1.action="a.php";form1.sumbit();}”
>
<input type="button" name="b" value="b"
onClick=“{ document.form1.action="b.php";form1.sumbit();}”
>
<?
if($diction=='true')
$filename='myfile.php';
else
$filename='yourfile.php';
?>
<form name="form1" method="post" action="<?echo $filename;?>">