[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]
You forgot to answer my question. Are you saying users are allowed to enter slashes? back or forward slashes?
The form area I am trying to have editable is for a website header. So the user needs to add " or '
<a href="jacks-page.php">Jack's Page</a>
The script need not to have a coronary when either " or ' is used.
At this point, all I can do is get one or the other working. Not both.
All I can do is get \\\\\\\\\\\'this
or no slashes at all (by using stripslashes or ereg_replace) but I can't remove the slashes. I need at least one.
[!--quoteo(post=358639:date=Mar 26 2006, 03:39 PM:name=toplay)--][div class=\'quotetop\']QUOTE(toplay @ Mar 26 2006, 03:39 PM)
Question: Do you absolutely need to have the config file in this format?
I would use a different approach. Like save the data in the file without the variable names. Then when you need to use it, you read the file data and assign each value to the appropriate variable.
I have a configuration page where you can enter email, site name , different site colors etc.. and on that same page is a textarea to add header and footer code. It would be great if I could just get one problem fixed. It's one teeny weeny tiny problem, that has cost me 8 hours and if I can get it sorted, everything will be PERFECT and I'll be able to move on.
I have already thought about removing the header and footer textareas out of that form and making a different page. Where I will just use <?php include $headerfile ;?> and then make a page that writes to that headerfile, but I'd really like to just keep it as it is.
Surely there must me a way to add code that contains " and ' to a string, without causing code coronaries.