My code is the following
<button onClick="showMoveFile(<?php echo $file_id; ?>,
\"<?php echo $folder_id; ?>\",
\"<?php echo addslashes($filename); ?>");\">
move
</button>
the onClick event is already in double-quotes.
the filename and folder_id are strings.
The problem begins when $filename has an apostrophe in it, like cousin's
For some reason, I cannot escape the 'as I should.
Any suggestions?
thanks!