function submitForm()
{
$.ajax({
type: 'GET',
url: 'iccrefresh.php',
data: $('this').serialize(),
dataType:'script',
error: function()
{ $( "#dialog_error" ).dialog( "open" ); },
success: function()
{ $( "#dialog_success" ).dialog( "open" ); }
});
return false;
}
在 PHP 中
echo "<form name='refresh' onsubmit='return submitForm();'>";
echo "<input type='hidden' name='team1' value=$teamx />";
echo "<input type='hidden' name='team2' value=$teamy />";
echo "<input type='submit' name='submit' align='middle' value='Refresh Match Score'/>";
echo "</form>";
有什么原因我不能送第 1 队和第 2 队过去吗?我收到一条成功消息,但 iccrefresh 无法访问团队 1 和团队 2 的值?