$outlet = $_POST['outlet']; $target = $_POST['target']; if ( $outlet == $target ) { die ('same outlet and target'); }