我無法使用您提供的鏈接查看源代碼。我假設這個問題有點像我提到的&提供的解決方案。
你可以使用jQuery來爲你做。
HTML:
<form id="myForm">
<input name="samefield1"/>
<input name="samefield2"/>
<input name="samefield3"/>
<input name="samefield4"/>
<input type="button" id="btn_dload" value="Download">
<input type="button" id="btn_try" value="Try Now">
</form>
jQuery代碼:
$(function(){
$("#btn_dload").click(function(){
var data $("#myForm").serialize(); // this will serialize form data like
// samefield1=value1&samefield2 = value2;
$.ajax({
data: data,
url: 'the download form submission url',
type: 'post',
success: yourcallback();
});
});
$("#btn_try").click(function(){
var data $("#myForm").serialize(); // this will serialize form data like
// samefield1=value1&samefield2 = value2;
$.ajax({
data: data,
type: 'post',
url: 'the try now form submission url',
success: yourcallback();
});
});
});
我已經找到了修復它的解決方案。 – n2lose