2011-02-18 32 views
0

不工作,我有以下的代碼提交表單圖像提交在IE

<div class="free-download"> 
    <input name="method_free" 
     value="<TMPL_VAR lang_free_download>" 
     type="image" 
     src="images/free-download.png" 
     alt="<TMPL_VAR lang_free_download>" /> 
</div> 

它在Firefox工作正常,但在Internet Explorer中,它只是加載同一網頁出於某種原因,任何想法?

感謝

+0

什麼是您的TMPL_VAR標籤填充到HTML中? –

+0

我一直認爲input:image默認不提交表單,並且應該使用onclick JavaScript處理程序。 –

+0

它的Perl,我怎麼做一個onclick提交表單處理程序? –

回答

1

嘗試在輸入標籤的form屬性。

<input type="image" form="(ID of the form it belongs to)"> 

有時輸入可能在佈局中丟失。

+0

謝謝你的嘗試,但它沒有工作:( –

1

您是否檢查過您是否正在將method_free_x和method_free_y發回給您?似乎使用圖像提交時,您會看到被點擊的X和Y座標。