--- 20220209/address_insert.php
+++ 20220209/address_insert.php
... | ... | @@ -13,8 +13,8 @@ |
13 | 13 |
|
14 | 14 |
if($result){ |
15 | 15 |
echo "<script>alert('Insert Success!')</script>"; |
16 |
- echo "<script>location.href='address_view.php'</script>"; |
|
16 |
+ echo "<script>document.location.href='address_view.php'</script>"; |
|
17 | 17 |
}else { |
18 | 18 |
echo "<script>alert('Insert Fail!')</script>"; |
19 |
- echo "<script>location.href='address_view.php'</script>"; |
|
19 |
+ echo "<script>document.location.href='address_view.php'</script>"; |
|
20 | 20 |
} |
--- 20220209/updateBack.php
+++ 20220209/updateBack.php
... | ... | @@ -12,8 +12,8 @@ |
12 | 12 |
|
13 | 13 |
if($result){ |
14 | 14 |
echo "<script>alert('Update Success!!!')</script>"; |
15 |
- echo "<script>location.href='address_view.php'</script>"; |
|
15 |
+ echo "<script>document.location.href='address_view.php'</script>"; |
|
16 | 16 |
}else{ |
17 | 17 |
echo "<script>alert('Update Fail!!!')</script>"; |
18 |
- echo "<script>location.href='address_view.php'</script>"; |
|
18 |
+ echo "<script>document.location.href='address_view.php'</script>"; |
|
19 | 19 |
}(No newline at end of file) |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?