在我的网页中,我只想将详细信息发送给所有者和用户的邮件,因此我正在使用" mailto",但它根本不工作。我正在使用的代码如下所示,我也想知道我使用的代码是否正确,如果错误,请提供正确的代码。
<form name=PPMiniCart action="mailto:info@domain.com" method="post" enctype="text/plain">
<fieldset>
<input type="hidden" name="business" value="info@domain.com" />
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="display" value="1" />
<input type="hidden" name="return" value="http://www.minicartjs.com/?success" />
<input type="hidden" name="cancel_return" value="http://www.minicartjs.com/?cancel" />
<input type="image" name="submit" value="Click here to edit / cancel Items in your cart" onClick="submitform()" class="button" style="margin-left: 800px;"/>
</fieldset>
</form>
答案 0 :(得分:0)
删除提交onclick功能...
<form name=PPMiniCart action="mailto:info@domain.com" method="post" enctype="text/plain">
<fieldset>
<input type="hidden" name="business" value="info@domain.com" />
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="display" value="1" />
<input type="hidden" name="return" value="http://www.minicartjs.com/?success" />
<input type="hidden" name="cancel_return" value="http://www.minicartjs.com/?cancel" />
<input type="image" name="submit" value="Click here to edit / cancel Items in your cart" class="button" style="margin-left: 800px;"/>
</fieldset>
</form>
这里是样本
<form action="MAILTO:someone@example.com" method="post" enctype="text/plain">
Name:<br>
<input type="text" name="name" value="your name"><br>
E-mail:<br>
<input type="text" name="mail" value="your email"><br>
Comment:<br>
<input type="text" name="comment" value="your comment" size="50"><br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>