🐘 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,159
Guests online
1,933
Total visitors
3,092

Forum statistics

Threads
2,293,963
Posts
29,087,730
Members
1,208,019
Latest member
C0ded
Back
Top