如何在divi联系表单中嵌入http referrer

时间:2018-04-25 08:13:46

标签: php wordpress themes

如何在divi联系表单中嵌入http referrer。我只能发送在%% field id %%之间给出的电子邮件,消息文本字段。在Divi文档中,他们给出了我们需要将字段ID放在%%之间,就像这个%%字段id %%一样。但是我无法添加http referrer或page url。我看到这样的源代码 “                                              

            <label for="et_pb_contact_name_1" class="et_pb_contact_form_label">Name</label>
            <input type="text" id="et_pb_contact_name_1" class="input" value="" name="et_pb_contact_name_1" data-required_mark="required" data-field_type="input" data-original_id="name" placeholder="Name">
        </p><p class="et_pb_contact_field et_pb_contact_field_1 et_pb_contact_field_last" data-id="email" data-type="email">


            <label for="et_pb_contact_email_1" class="et_pb_contact_form_label">Email Address</label>
            <input type="text" id="et_pb_contact_email_1" class="input" value="" name="et_pb_contact_email_1" data-required_mark="required" data-field_type="email" data-original_id="email" placeholder="Email Address">
        </p><p class="et_pb_contact_field et_pb_contact_field_2 et_pb_contact_field_last" data-id="phone" data-type="input">


            <label for="et_pb_contact_phone_1" class="et_pb_contact_form_label">Phone Number</label>
            <input type="text" id="et_pb_contact_phone_1" class="input" value="" name="et_pb_contact_phone_1" data-required_mark="required" data-field_type="input" data-original_id="phone" placeholder="Phone Number" pattern="[0-9]*" title="Only numbers allowed.">
        </p><p class="et_pb_contact_field et_pb_contact_field_3 et_pb_contact_field_last" data-id="message" data-type="text">


            <label for="et_pb_contact_message_1" class="et_pb_contact_form_label">Message</label>
            <textarea name="et_pb_contact_message_1" id="et_pb_contact_message_1" class="et_pb_contact_message input" data-required_mark="required" data-field_type="text" data-original_id="message" placeholder="Message"></textarea>
        </p><p class="et_pb_contact_field et_pb_contact_field_4 et_pb_contact_field_last" data-id="url" data-type="input">


            <label for="et_pb_contact_url_1" class="et_pb_contact_form_label">New Field</label>
            <input type="text" id="et_pb_contact_url_1" class="input" value="" name="et_pb_contact_url_1" data-required_mark="not_required" data-field_type="input" data-original_id="url" placeholder="New Field">
        </p>
                    <input type="hidden" value="et_contact_proccess" name="et_pb_contactform_submit_0">
                    <input type="text" value="" name="et_pb_contactform_validate_0" class="et_pb_contactform_validate_field" />
                    <div class="et_contact_bottom_container">

                        <button type="submit" class="et_pb_contact_submit et_pb_button">Send Message</button>
                    </div>
                    <input type="hidden" id="_wpnonce-et-pb-contact-form-submitted" name="_wpnonce-et-pb-contact-form-submitted" value="8b651527df" /><input type="hidden" name="_wp_http_referer" value="/data-analytics/test" />
                </form>
            </div> <!-- .et_pb_contact -->
        </div> <!-- .et_pb_contact_form_container -->

显然有隐藏的领域,但我不知道如何嵌入表单。感谢

0 个答案:

没有答案