我在 MailChimp 的网站上使用以下内容提交表单:
<span id="response"><? require_once('inc/store-address.php'); if($_GET['submit']){ echo storeAddress(); } ?></span>
<form id="subform" action="<?=$_SERVER['PHP_SELF']; ?>" method="get">
<fieldset>
<p>
<input name="email" id="email" onfocus="if (this.value == 'Email') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Email';}" value="Email" class="required email" />
</p>
<div class="button button-orange"> <span class="form_button clearfix">
<input type="submit" class="sub_submit" name="submit" value="subscribe" />
</span> </div>
<div id="result_sub"></div>
</fieldset>
</form>
一切正常,除了提交时,它会重新加载整个页面。我该如何防止这种情况?