Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
不确定我的honeytrap php脚本放在哪里_Php_Html_Css - Fatal编程技术网

不确定我的honeytrap php脚本放在哪里

不确定我的honeytrap php脚本放在哪里,php,html,css,Php,Html,Css,我正试图放置一个隐藏字段来限制某些网络表单垃圾邮件 下面是我将添加到表单中的隐藏字段: <label for="humans" class="humans">Human check: Leave this field empty</label> <input type="text" name="humans" id="humans" class="humans" /> 下面是PHP: <?php if(!empty($_POST['humans'])

我正试图放置一个隐藏字段来限制某些网络表单垃圾邮件

下面是我将添加到表单中的隐藏字段:

<label for="humans" class="humans">Human check: Leave this field empty</label>
<input type="text" name="humans" id="humans" class="humans" />
下面是PHP:

<?php

if(!empty($_POST['humans'])) {
    // it's spam
} else {
    // it's human
}

?>

我的问题是-我想我可以将提交按钮放在“else”选择器中,但它会使标记无效

这是我的表格:

            <form class="form-view theme7" id="agile-form" action="https://xxx.agilecrm.com/formsubmit" style="max-width:100%;" method="GET" >

                <fieldset>

                    <!-- Form Name -->
                    <legend class="agile-hide-formname"><?php the_field('agile_form_name'); ?></legend>

                    <p style="padding-top:50px;">Speaking Opportunities | Ticket Discounts | Early Bird Deals</p>

                    <!-- <p class="agile-form-description"></p> -->
                    <div style="display: none; height: 0px; width: 0px;">
                        <input type="hidden" id="_agile_form_name" name="_agile_form_name" value="<?php the_field('agile_form_name'); ?>">
                        <input type="hidden" id="_agile_domain" name="_agile_domain" value="xxxx">
                        <input type="hidden" id="_agile_api" name="_agile_api" value="xxxx">
                        <input type="hidden" id="_agile_redirect_url" name="_agile_redirect_url" value="<?php the_field('agile_thank_you_page_url'); ?>">
                        <input type="hidden" id="_agile_document_url" name="_agile_document_url" value="">
                        <input type="hidden" id="_agile_confirmation_msg" name="_agile_confirmation_msg" value="Great! Thanks for filling out the form.">
                        <input type="hidden" id="_agile_form_id_tags" name="tags" value="<?php the_field('agile_tags'); ?>">
                        <input type="hidden" id="_agile_form_id" name="_agile_form_id" value="<?php the_field('agile_form_value'); ?>">
                    </div>

<label for="humans" class="humans">Human check: Leave this field empty</label>
<input type="text" name="humans" id="humans" class="humans" />

                    <!-- Text input-->
                    <div class="agile-group required-control">
                      <!-- <label class="agile-label" for="agilefield-2">Enter  Email<span class="agile-span-asterisk"> *</span></label> -->
                      <div class="agile-field-xlarge agile-field">
                        <input maxlength="250" id="agilefield-2" name="email" type="email" placeholder="Enter your email" class="agile-height-default" required="">
                      </div>
                      <div class="agile-custom-clear"></div>
                    </div>
                    <!--recaptcha aglignment-->
                    <!-- Button -->
                    <div class="agile-group">
                      <label class="agile-label">&nbsp;</label>

                      <div class="agile-field agile-button-field">
                        <button type="submit" class="agile-button">Subscribe Now</button>
                        <p class="text-muted" style="padding-top:20px;">Cancel Anytime | We Do Not Spam</p>
                        <br><span id="agile-error-msg"></span>
                      </div>

                    </div>

                </fieldset>
            </form>

演讲机会|门票折扣|早起优惠

我原以为可以将提交按钮放在“else”选择器中,但它会使标记无效

这意味着:

如果用户在没有填写蜜罐的情况下成功提交了表单,那么您将给予他们提交表单的能力

这是第二十二条军规

只需将提交按钮放入表单中。您需要它以便可以提交

我原以为可以将提交按钮放在“else”选择器中,但它会使标记无效

这意味着:

如果用户在没有填写蜜罐的情况下成功提交了表单,那么您将给予他们提交表单的能力

这是第二十二条军规

只需将提交按钮放入表单中。您需要它以便可以提交

            <form class="form-view theme7" id="agile-form" action="https://xxx.agilecrm.com/formsubmit" style="max-width:100%;" method="GET" >

                <fieldset>

                    <!-- Form Name -->
                    <legend class="agile-hide-formname"><?php the_field('agile_form_name'); ?></legend>

                    <p style="padding-top:50px;">Speaking Opportunities | Ticket Discounts | Early Bird Deals</p>

                    <!-- <p class="agile-form-description"></p> -->
                    <div style="display: none; height: 0px; width: 0px;">
                        <input type="hidden" id="_agile_form_name" name="_agile_form_name" value="<?php the_field('agile_form_name'); ?>">
                        <input type="hidden" id="_agile_domain" name="_agile_domain" value="xxxx">
                        <input type="hidden" id="_agile_api" name="_agile_api" value="xxxx">
                        <input type="hidden" id="_agile_redirect_url" name="_agile_redirect_url" value="<?php the_field('agile_thank_you_page_url'); ?>">
                        <input type="hidden" id="_agile_document_url" name="_agile_document_url" value="">
                        <input type="hidden" id="_agile_confirmation_msg" name="_agile_confirmation_msg" value="Great! Thanks for filling out the form.">
                        <input type="hidden" id="_agile_form_id_tags" name="tags" value="<?php the_field('agile_tags'); ?>">
                        <input type="hidden" id="_agile_form_id" name="_agile_form_id" value="<?php the_field('agile_form_value'); ?>">
                    </div>

<label for="humans" class="humans">Human check: Leave this field empty</label>
<input type="text" name="humans" id="humans" class="humans" />

                    <!-- Text input-->
                    <div class="agile-group required-control">
                      <!-- <label class="agile-label" for="agilefield-2">Enter  Email<span class="agile-span-asterisk"> *</span></label> -->
                      <div class="agile-field-xlarge agile-field">
                        <input maxlength="250" id="agilefield-2" name="email" type="email" placeholder="Enter your email" class="agile-height-default" required="">
                      </div>
                      <div class="agile-custom-clear"></div>
                    </div>
                    <!--recaptcha aglignment-->
                    <!-- Button -->
                    <div class="agile-group">
                      <label class="agile-label">&nbsp;</label>

                      <div class="agile-field agile-button-field">
                        <button type="submit" class="agile-button">Subscribe Now</button>
                        <p class="text-muted" style="padding-top:20px;">Cancel Anytime | We Do Not Spam</p>
                        <br><span id="agile-error-msg"></span>
                      </div>

                    </div>

                </fieldset>
            </form>