$name = $_POST['customername']; $date = date("Y-m-d - H:i:s"); $handle = fopen("orders/" .$date . " - " .$name . ".txt","w+");