Page 1 of 1

Publishing a variable with comma's in it

Posted: Sun Nov 08, 2009 8:51 pm
by Monotoko
Hiya guys, needing some help, basically, on the admin panel of this program i am working on, it asks for a bit of code for an Opt-In box, then it saves the code into a variable, then publishes that code later when you are on the page.

Now, my problem is that the entire thing dies if there are any " involved...so i was wondering if there was a way to parse these before i put them in the variable?

thank you
~Monotoko

Re: Publishing a variable with comma's in it

Posted: Sun Nov 08, 2009 9:33 pm
by requinix
Without offering any code best I can suggest is to use addslashes.