if(isset($_POST["dominio2"])){ $domi = $_POST["dominio2"]; $domi = str_replace("http://", "", $domi); $domi = str_replace("www.", "", $domi); header("location:http://webmail.".$domi); } ?>