Jump to content

[SOLVED] stripslashes twice?


dadamssg

Recommended Posts

Im trying to figure out whats goin on here. i store events that can be updated in my db. So, the title,location,times, etc can be updated. For the update form, i have a form that has the default text or 'value's of whats already in the db. So if the title of the event was Party Tonight. A stripslashes version of it would show up in the title field of the form as the default value. But when i have a title with quotation marks in it (") the quotations and everything in between doesn't show up. I'm wondering if i'm stripslashing it more than once and if that could be the cause of the disappearing text?? anybody know?

Link to comment
https://forums.phpfreaks.com/topic/166211-solved-stripslashes-twice/
Share on other sites

It doesn't appear because of the <input type="text" value="valuewith"" /> (notice the double quotes). One method would be to use str_replace() to replace aprostrophe's and leave the escaped quotations.  There's probably a better way to do it but that's the first idea that popped in my head.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.