在Wordpress网站上填写表格时收到403

时间:2019-05-22 01:07:28

标签: php wordpress forms

当前在Wordpress网站上遇到问题。有一个供用户完成的表单,该表单引用了php表单处理程序。在网站上填写表格时,出现以下错误:

  

无法加载资源:服务器响应状态为403()   /wp-content/uploads/static-html-to-wp/data/dff0d41695bbae509355435cd32ecf5d/form-handler.php:1

我尝试更新.htaccess文件,该文件在初始设置时完全丢失。仍无法正确提交表格。我什至临时更新了所有目录的权限,并且无法执行。

表格:

<form method="POST" action="form-handler.php" class="row no-gutters">
    <div class="col-md-7 col-sm-6 col-7">
        <input type="name" name="text" placeholder="Name" class="w-full input sm border-gray focus-action-1 color-heading placeholder-heading" required >
        <input type="email" name="email" placeholder="Your email" class="w-full input sm border-gray focus-action-1 color-heading placeholder-heading" required >
        <input type="company" name="text" placeholder="Company Name" class="w-full input sm border-gray focus-action-1 color-heading placeholder-heading" >
        <input type="phone" name="tel" placeholder="Phone Number (Optional)" class="w-full input sm border-gray focus-action-1 color-heading placeholder-heading" >

预期结果将是成功提交表单并在form_handler.php中执行邮件功能

0 个答案:

没有答案