when i am echo'ing a variable to find the value or check the value, i usually write it to a test file, like so:
PHP Code:
$handle fopen($filename'a'));
fwrite($handle"$_POST['R/W']");
fclose($handle); 
the reason i usually use a file rather than echoing the variable is because a file is more reliable to get the info out of.