window.location.href = '../download_page'"; } else { die("Connection failed "); } $link->close();