遇到500 Internal Server Error错误

使用php-fusion版本7。cPanel托管。尝试使联系页面表单正常工作,并尝试了很多事情,并且仍然存在相同的错误。

使用Matt的脚本档案库中的Form Mail。这曾经在旧的Linux主机上工作。尝试使此表单在独立的HTML文件中工作时,出现500错误。请提供帮助。

<div align="center">
  <center>
  <table border="0" width="70%">
    <tr>
      <td width="100%">
<form METHOD=POST ACTION="/cgi-bin/BFormMail.pl">
<input type="hidden" name="redirect" value="thankyou.htm">
<input type="hidden" name="recipient" value="email@domain.com">
<input type="hidden" name="subject" value="ATST Application Request">

<table cellpadding="2" cellspacing="0" border="0" style="border-collapse: collapse" bordercolor="#111111">
<tr valign="top">
 <td nowrap><font size="4">Application Date</font></td>
 <td><font size="4"><input type="text" name="a_Application_Date" size="30"> </font> </td>
</tr>
<tr valign="top">
 <td nowrap><font size="4">Full Name</font></td>
 <td><font size="4"><input type="text" name="b_Full_Name" size="30"> </font> </td>
</tr>
<tr valign="top">
 <td nowrap><font size="4">Address</font></td>
 <td><font size="4"><input type="text" name="c_Address" size="30"> </font> </td>
</tr>
<tr valign="top">
 <td nowrap><font size="4">City/State/Zip Code</font></td>
 <td><font size="4"><input type="text" name="d_City_State_Zip_Code" size="30"> </font> </td>
</tr>
<tr valign="top">
 <td nowrap><font size="4">Home Phone</font></td>
 <td><font size="4"><input type="text" name="e_Home_Phone" size="30"> </font> </td>
</tr>
<tr valign="top">
 <td nowrap><font size="4">Cell Phone</font></td>
 <td><font size="4"><input type="text" name="f_Cell_Phone" size="30"> </font> </td>
</tr>
<tr valign="top">
 <td nowrap><font size="4">Email Address</font></td>
 <td><font size="4"><input type="text" name="g_Email_Address" size="30"> </font> </td>
</tr>
<tr valign="top">
 <td nowrap><font size="4">Requesting Enrollment Date</font></td>
 <td><font size="4"><input type="text" name="h_Requesting_Enrollment_Date" size="30"> </font> </td>
</tr>
<tr valign="top">
 <td nowrap><font size="4">Request (Please Check One)</font></td>
 <td><font size="4"><input type=checkbox name="i_Request1" value="Enrolling Now - Save My Seat! " id="check120">
 <label for="check120">Enrolling Now - Save My Seat!</label>
 <br>
 <input type=checkbox name="j_Request2" value=" Please Send More Information " id="check121">
 <label for="check121"> Please Send More Information</label><br>
 <input type=checkbox name="k_Request3" value=" Please Contact Me" id="check122">
 <label for="check122"> Please Contact Me</label><br></font></td>
</tr>
<tr valign="top">
 <td nowrap><font size="4">Interested in our accommodations?</font></td>
 <td><font size="4"><select name="l_accommodations"><option value="N/A ">N/A </option><option value=" Yes "> Yes </option><option value=" No"> No</option></select> </font> </td>
</tr>
<tr valign="top">
 <td nowrap><font size="4">Male or Female Accommodations?</font></td>
 <td><font size="4"><select name="m_Male_Female"><option value="N/A ">N/A </option><option value=" Male "> Male </option><option value=" Female"> Female</option></select> </font> </td>
</tr>
<tr valign="top">
 <td nowrap><font size="4">Questions or Comments</font></td>
 <td><font size="4"><textarea name="n_Comments" cols="36" rows="6"></textarea><br> </font> </td>
</tr>
<tr>
 <td>
 </td>
 <td align="right">
<p align="center">
<input type="text" name="hida2" value="" maxlength="100" size="3" style="display : none;">
<input type="submit" class="btn" value="Send Request" name="Submit">&nbsp; &nbsp; <input type="reset" class="btn" value="  Clear  " name="Clear"></p>
 </td>
</tr>
<tr>
<td colspan=2 align="center">
</td>
</tr>
</table>
</form>
     </td>
    </tr>
  </table>
  </center>
</div>
评论
  • cnon
    cnon 回复

    您检查了文件权限吗?