MAJOR Problem!
I’ve developed a competition for one of my clients, and they kept telling me that they get complaints from some of them, when they enter, they get a “page cannot be displayed”… It’s NEVER happened on my side, so we figured out what the problem is :
One of the answers had a ’ (apostrophe) in the sentence… So, whenever you enter and you press the submit button, it gives you that error… In IE its an HTTP 500 internal server error.
What must I do to prevent this happenening?
Please help… Think I’m on the verge of loosing my job here… eeeeek!!!:crying:
If the data from the form is inserted into a database (Access, MSSQL, etc.) then the apostrophe causes an internal server error because the SQL query is affected by the apostrophe. This is widely discussed problem and it is called ‘SQL injection’. Have a look at the following
As you can see this will raise a SQL syntax error. That is what your internal server error is coming from. Have a look at this page for information on how to solve the problem: