Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

single quotes are doubled

Status
Not open for further replies.

jms8142

IS-IT--Management
Dec 3, 2001
16
US
This is strange, but when I'm posting a string from a textbox with a single quote, it gets double.

'''''single quote'''''

becomes

''''''''''single quote''''''''''

magic_quotes_gpc is on, but i didn't think that would make a difference.

double quotes are fine.

Any ideas?
 
It's some PHP configuration thing, the code is not doing anything...

<form method=post>
<textarea name="form_content" cols="75" rows="20" wrap="virtual">
</textarea>
<input type=submit value=post>
</form>
<?=$form_content?>

A single quote posted from this text area comes back repeated.
 
ok, I did some more research on this, and I realize that it's because magic_quotes_sybase is set to on in the php config. This escapes a single quote with another single quote, which is nessessary because they're running mssql queries, which require single quotes to be escaped this way.

Thanks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top