【发布时间】:2013-08-22 12:09:23
【问题描述】:
各位专家,
I am looking to submit two forms with one submit button and sending data to
两个不同的位置。我不知道在哪里可能,但我相信你 专家会对这个问题有一些解决方案。非常感谢您提前提供帮助 找到下面的代码。
Form 1(登录)正在向 login.php 发送数据,并且 表格 2(捕获登录)正在向 CRM 文件 capture.php 发送数据。
echo "<center><form name=login method=post action=getlogin.php>" ;
echo "<table border=0 cellpadding=5>";
echo "<tr><td>Email</td>";
echo "<td><input type=text name=l_email size=35></td></tr>";
echo "<tr><td>Password </td>";
echo "<td><input type=password name=l_password size=35></td></tr>";
echo "<form name=Capture Login action=//localhost:8888/modules/Webforms/capture.php method=post accept-charset=utf-8>";
echo "<input type=hidden name=publicid value=ec556b63988fbf6a793a1e1cf2238ef0> </input>";
echo "<input type=hidden name=name value=Capture Login></input>";
echo " </p>";
echo " <p>";
echo " <label>Last Name</label>";
echo " <input type=text name=lastname required=true>";
echo " </p>";
echo " <p>";
echo "<label>Company</label>";
echo "<input type=text name=company required=true>";
echo " </p>";
echo " <p>";
echo "<tr><td><input type=submit value='Login'></td>";
echo "<td><input type=reset value='Clear Form'></td></tr>";
echo "</table>";
echo "</form>";
echo "</form></center>";
【问题讨论】: