🐘 PHP How to redirect to a new php page with alert box?

Status
Not open for further replies.

KristanC

Honorary Poster
Hello po mga kaPHC ask ko kang pano po mag display muna ng alert box tas pag click OK mag redirect sa new php page

Yung redirect po na tinutukoy ko is

Code:
header("location:index.php");
 
<button type="button" class="button" onclick="redirect()">Go to</button>
</div>
<script>
function redirect() {
alert("You are now redirecting..");
window.location.href="You do not have permission to view the full content of this post. Log in or register now.", '_blank';
}
</script>
 
Status
Not open for further replies.

About this Thread

  • 3
    Replies
  • 1K
    Views
  • 2
    Participants
Last reply from:
0abstrakt

Trending Topics

Online now

Members online
1,042
Guests online
3,503
Total visitors
4,545

Forum statistics

Threads
2,307,123
Posts
29,176,689
Members
1,193,244
Latest member
Tofan
Back
Top