|
网银 财付通 为什么写了js 自动提交,在火狐下可以自动提交,在IE 和google 游览器就不能自动提交了呢!
我把代码贴出来
<body>
<div ><p>请稍等...<input type="submit" name="submit" value="手动提交" /></p></div>
<form method="post" action="https://gw.tenpay.com/gateway/pay.htm" name="form_payment" target="_blank">
{foreach from=$payment item=pval key=pkey }
{if $pval != ''}
<input type=HIDDEN name='{$pkey}' value="{$pval}">
{/if}
{/foreach}
</form>
<script type="text/javascript">
function form_submit(){
document.form_payment.submit();
}
window.onload = form_submit();
</script>
</script>
</body>
|
|