我正在尝试使用href按钮设置表单。我一直在改变不同的东西并多次提交表格,从10我只收到1封电子邮件。我知道它有效,但我的问题是为什么它有时才起作用?这是我的代码:
'<form id="search-form1">
<fieldset>
<div class="extra-wrap">
<div class="col-1">
<label><input type="text" value="Your full name (required) " onFocus="if(this.value=='Your full name (required) '){this.value=''}" onBlur="if(this.value==''){this.value='Your full name (required) '}" /></label>
<label><input type="text" value="Your email address (required)" onFocus="if(this.value=='Your email address (required)'){this.value=''}" onBlur="if(this.value==''){this.value='Your email address (required)'}" /></label>
<label><input type="text" value="Subject" onFocus="if(this.value=='Subject'){this.value=''}" onBlur="if(this.value==''){this.value='Subject'}" /></label>
</div>
<div class="col-2">
<textarea onBlur="if(this.value=='') this.value='Your message'" onFocus="if(this.value =='Your message' ) this.value=''">Your message</textarea><br>
<img src="images/page1-img15.gif" alt="" class="img">
<label><input type="text" class="input1" value="" onFocus="if(this.value==''){this.value=''}" onBlur="if(this.value==''){this.value=''}" />
<a href="mailto:ramon.ramirez0831@gmail.com" class="link8" onclick="document.getElementById('search-form1').submit();return false">Send</a>
</label>
</div>
</div>
</fieldset>
</form>'