admin管理员组文章数量:1026989
I have a custom form in WordPress theme template but it is displaying internal server error upon submission. There is no error in error.log file regarding this submission. I am hosting my website on bluehost and here is my form
<form method="post" action="<?php echo get_template_directory_uri(); ?>/formprocessing.php">
<label for="first-name">Name*</label>
<input class="form-control" type="text" id="name" name="volunteerName" required/>
<label for="address">Address*</label>
<input class="form-control" type="text" id="address" name="volunteerAddress" required/>
<label for="email">Email*</label>
<input class="form-control" type="email" id="email" name="volunteerEmail" required/>
<input class="form-control" class="btn btn-primary" type="submit" value="Submit" id=""/>
</form>
In formprocessing.php file I am just displaying some text and upon submission it redirects to this template file but displaying Internal server error.
<?php
if (isset($_POST['volunteerName'])){
echo "Form working";
exit;
}
?>
I have spent a lot of time to figure out this issue but still not able to figure out this. Your help will be much appreciated.
I have a custom form in WordPress theme template but it is displaying internal server error upon submission. There is no error in error.log file regarding this submission. I am hosting my website on bluehost and here is my form
<form method="post" action="<?php echo get_template_directory_uri(); ?>/formprocessing.php">
<label for="first-name">Name*</label>
<input class="form-control" type="text" id="name" name="volunteerName" required/>
<label for="address">Address*</label>
<input class="form-control" type="text" id="address" name="volunteerAddress" required/>
<label for="email">Email*</label>
<input class="form-control" type="email" id="email" name="volunteerEmail" required/>
<input class="form-control" class="btn btn-primary" type="submit" value="Submit" id=""/>
</form>
In formprocessing.php file I am just displaying some text and upon submission it redirects to this template file but displaying Internal server error.
<?php
if (isset($_POST['volunteerName'])){
echo "Form working";
exit;
}
?>
I have spent a lot of time to figure out this issue but still not able to figure out this. Your help will be much appreciated.
本文标签: Custom form in theme template displaying internal server error upon submission
版权声明:本文标题:Custom form in theme template displaying internal server error upon submission 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745662095a2161953.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论