you probably have magic quotes enabled, only two things you can do. disable magic quotes in your php.ini or call stripslashes()
on $_GET
and $_POST
globals.
FYI, use $_GET['contents']
as opposed to $contents
; newer versions of php will not create the $contents
var.