MailChimp表单正在提交页面上

时间:2012-04-17 20:50:06

标签: php api mailchimp

我在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>

一切正常,除非提交,它会重新加载整个页面。我该如何防止这种情况?

1 个答案:

答案 0 :(得分:0)

这是正常的(你无能为力),但我很确定Mail Chimp有一个选项,允许你控制用户点击提交后去往的页面。