0
イメージ送信ボタンを作成できません。クリックすると何も起こりません。ここに私のコードは次のとおりです。この送信ボタンをクリックしても何も起こらないのですか?
<input type="image" src="notify_me.png" name="submit" id="submit" OnClick="this.disabled = true" value=""/>
if($_POST) {
イメージ送信ボタンを作成できません。クリックすると何も起こりません。ここに私のコードは次のとおりです。この送信ボタンをクリックしても何も起こらないのですか?
<input type="image" src="notify_me.png" name="submit" id="submit" OnClick="this.disabled = true" value=""/>
if($_POST) {
あなたはクリックイベントでフォームを送信する必要があります。
<input type="image" src="notify_me.png" onclick="document.forms[0].submit();" />
また提出するタイプの入力を使用する必要があります。
<input type="submit" style="width:(width); height:(height); background-image:url('notify_me.png'); border:none; padding:0;" />
は真のリターンを追加します。あなたのdisable onClickイベントの後。
<input type="image" src="notify_me.png" name="Submit" id="submit" onClick="this.disabled = true; return true;" value="" />