オレはこんな感じで書いてるな

$foo = "";
 if (array_key_exists('foo', $_POST)){
$foo = $_POST['foo'];
}