如何在html 利用js 将一个表单同时提交至两个页面

<formclass="aw-register-form"action="account/ajax/register_process/"onsubmit="AWS.aja... <form class="aw-register-form" action="account/ajax/register_process/" onsubmit="AWS.ajax_post($('#register_form'), AWS.ajax_processer, 'error_message'); return false;" method="post" id="register_form">
<?php if ($this->icode) { ?><input type="hidden" name="icode" id="icode" value="<?php echo $this->icode; ?>" /><?php } ?>
<?php if ($this->return_url) { ?><input type="hidden" name="return_url" value="<?php echo $this->return_url; ?>" /><?php } ?>

<ul>
<li class="alert alert-danger hide error_message text-left">
<i class="icon icon-delete"></i> <em></em>
</li>
<li>
<input class="aw-register-name form-control" type="text" name="user_name" placeholder="<?php _e('用户名'); ?>" tips="<?php _e('请输入一个 2-14 位的用户名');?>" errortips="<?php _e('用户名长度不符合');?>" value="" />
</li>
<li>
<input class="aw-register-email form-control" type="text" placeholder="<?php _e('邮箱'); ?>" name="email" tips="<?php _e('请输入你常用的电子邮箱作为你的账号'); ?>" value="<?php echo $_GET['email']; ?>" errortips="<?php _e('邮箱格式不正确'); ?>" />

<button class="btn btn-large btn-blue btn-block" onclick="post(newfile.php,$('#register_form');return chk_submit();return post(newfile.php,$('#register_form'));"><?php _e('注册'); ?></button>

</li>
</ul>
</form>

这是源代码 我想吧这个表单 同时提交至两个文件内 求救
展开
 我来答
miniapp6YdRKPFNcTBgH
推荐于2016-02-06 · TA获得超过397个赞
知道小有建树答主
回答量:801
采纳率:0%
帮助的人:494万
展开全部
表单只能提交给一个文件,你可以把两个处理文件写到一个处理文件中。
本回答被提问者和网友采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式