SycoSyco Posted February 13, 2007 Share Posted February 13, 2007 I've added a admin form to enter data to mysql to a website. The form works fine with plain text but when i try to enter a chunk of HTML i get a 500 error. the HTML is just basic tables and text. Any ideas what would cause a 500 error? Quote Link to comment https://forums.phpfreaks.com/topic/38279-web-from-giving-500-error-but/ Share on other sites More sharing options...
o3d Posted February 13, 2007 Share Posted February 13, 2007 This problem occurs because there is an error processing the PHP script, and the "Friendly HTTP error messages" are enabled in Internet Explorer which suppresses the error details. Try to turn off the "Friendly HTTP error messages" by choosing tools->internet options->advanced. Then the full error messages will be displayed, as well as the line number of the error. FROM http://www.idautomation.com/kb/http500error3.html Quote Link to comment https://forums.phpfreaks.com/topic/38279-web-from-giving-500-error-but/#findComment-183427 Share on other sites More sharing options...
btherl Posted February 13, 2007 Share Posted February 13, 2007 Are you using mysql_real_escape_string() on the form data? (Assuming you are using mysql). If not, it's likely your mysql query will be broken by quotes within the html. Quote Link to comment https://forums.phpfreaks.com/topic/38279-web-from-giving-500-error-but/#findComment-183432 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.