This topic is locked

Double quotes produces php error

8/26/2010 3:18:07 AM
PHPRunner General questions
G
gdude66 author

Hi,

I am using phprunner 4.1 and whenever I place double quotes around anything in a text field it produces a 256 php error. The item records but the error is annoying. It is one that is generated from phprunner.

Is there anyway to suppress or change this?

The only success i have had is ny turning magic quotes on but it breaks other things.
This is a working project and I would like to use it without the need for magic quotes.
I have tested the same text box with and without double quotes. Without is fine - with produces php error from phprunner project.

A
ann 8/26/2010

Graeme,
use single quotes or escape sequence (\") instead.

G
gdude66 author 8/26/2010

Sorry I mustn't have made myself clear. When the project is built and someone places "double quotes" in a text area like I am doing here the php error comes up.

I am wondering if it can be simply fixed another way as the error says dbconnection.php error line 26. The text also had a single quote in it as well.



Graeme,
use single quotes or escape sequence (\") instead.

A
ann 8/26/2010

Graeme,
you can validate the field as text field only. (Validate as option in the Edit as settings dialog on the Visual Editor tab).

Here is a sample:

[a-zA-Z0-9]