Php 联系表单7-根据文本字段值将页面重定向到特定URL

Php 联系表单7-根据文本字段值将页面重定向到特定URL,php,wordpress,contact-form-7,Php,Wordpress,Contact Form 7,在尝试了不同的方法之后,我无法让它正常工作 这是我的联系方式7表 <label> First Name* [text* your-name] </label> <label> Last Name* [text* last-name] </label> <label> Your Email* [email* your-email] </label> <label> Zip* [

在尝试了不同的方法之后,我无法让它正常工作

这是我的联系方式7表

<label> First Name*
    [text* your-name] </label>

<label> Last Name*
    [text* last-name] </label>

<label> Your Email*
    [email* your-email] </label>

<label> Zip*
    [text* zip] </label>

[recaptcha]

[submit "Sign up now"]
知道我做错了什么吗


提前感谢。

您忘了避开额外的双引号

javascript代码看起来不错

on\u sent\u ok:“var zip=$(\“text[name=zip]\”).val();…

请注意
\“

on_sent_ok: "var zip = $("text[name=zip]").val();

if(zip == '94619' ){ 
   location = 'http://dev-pier39.pantheonsite.io/confirmation'; 
} 
else { 
  location = 'http://dev-pier39.pantheonsite.io/fun-pack-coupon-confirmation'; 
}"