我想在浏览器中访问PHP文档时立即提交表格。 我如何做到这一点:最好在 j。
详细情况:
我有一份表格,一旦提交,就将一些数据输入一个数据库,并将用户送到一个单独的网页。 在单独的网页上,我有另一个表格的代码,然后指示用户支付所选择的任何费用。
我不想让用户不得不点击第二种表格,以便支付费用。 因此,是否有办法使这一表格自动提交,从而引导用户进入付款阶段?
我想在浏览器中访问PHP文档时立即提交表格。 我如何做到这一点:最好在 j。
详细情况:
我有一份表格,一旦提交,就将一些数据输入一个数据库,并将用户送到一个单独的网页。 在单独的网页上,我有另一个表格的代码,然后指示用户支付所选择的任何费用。
我不想让用户不得不点击第二种表格,以便支付费用。 因此,是否有办法使这一表格自动提交,从而引导用户进入付款阶段?
Invoke the submit
方法:
$("#formID").submit();
页: 1
<script>
$(function(){
$("#your-formID").submit();
});
</script>
你可以这样做。
<body onload="submitForm()" ></body>
<script>
function submitForm()
{
document.frm.submit();
}
</script>
frm是形式名称
如果自动提交,那么这种形式为何存在? 第一种形式直接转向第三页,处理服务器上的其余部分。 无需向客户发送数据。 使用 Java字自动张贴可能不利于每个客户。 消除这种风险,为此提供服务器。
I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....
I have a div <div id="masterdiv"> which has several child <div>s. Example: <div id="masterdiv"> <div id="childdiv1" /> <div id="childdiv2" /> <div id="...
I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...
<form><input type="file" name="first" onchange="jsFunction(2);"> <input type="file" name="second" onchange="jsFunction(3);"</form> Possible to pass just numbers to the js ...
So I ve got a menu with a hover/selected state and it loads fine in IE6/IE7. However when I scroll down the page and put the element outside of the viewport and then back in I get a broken image! I ...
I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...
Is it possible to reload a form after file-input change? I have a form where the user can chose an image for upload. I also have a php script which displays that image resized. I only wonder if it ...
I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!