我想在上传成功后支持我的表单上传页面。警报运行良好,但窗口位置未运行。
这是我的代码。感谢帮助
 if ($uploadKey)
   {
?>
  <script>
          alert("Upload succesfull");
      window.location ('= form_upload.php');
  </script>
        <?php
    }
else{
     ?>
       <script>
           alert("Upload failed");
           window.location('=form_upload.php');
    </script>
<?php
       }