var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
HELP! Slashes in front of every quotation
Well you probably got the whole story in the subject. The script I have to write to a text file is putting a slash in front of every ( ' ) without the parentheses. How do I avoid this? I'm sure its simple.
stripslashes() should work for u
IT STILL ISNT WORKING :'(
the variable $contents is input from a form.
$today = date("m.d.y");
// takes out evil slashes before quotations
// sets variable for writing to file
$new_contents = "<b> $today </b><br> [$name] <br> $contents <br>";
$current_contents = file("guestbook.txt");
//Open the file in "w" mode, essentially deleting it
$fp = fopen("guestbook.txt","w");
//Write the new content first, then the old content
// redirects page
Please read the
documentation for stripslashes() before you yell 'it still isnt working'.
In order to understand recursion, one must first understand recursion.
If you feel like it, you can read my
Signal > Noise
eh sorry. i needed a drink. i've got it now.
not exactly how i planned to implicate the code but whatever works will have to do.
stripslashes() RETURNS the value, doesn't actually make changes to the variable... which means you need to do: