<form id="form1" name="form1" method="post" onsubmit="return validator(this)" action="formmail.php">
在表单提交到formmail.php处理之前要提交到 by_result.php进行另外一些处理,这怎么转啊我的按钮又有函数调用了
熬到半夜没解决出来真痛苦
在表单提交到formmail.php处理之前要提交到 by_result.php进行另外一些处理,这怎么转啊我的按钮又有函数调用了
熬到半夜没解决出来真痛苦
一、
直接在 formmail.php 里 include by_result.php 不行吗?二、
在验证函数里 validator 用ajax把表单提交到by_result.php 然后 return false;
在ajax的回调里执行form1.submit();
提交数据到by_result.php
设定by_result.php
onLoad="javascript:document.FORM.submit()"且by_result.php的form的action为formmail.php个人赞同楼上意见,就不能放一起处理么