🐘 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

Online now

Members online
1,013
Guests online
892
Total visitors
1,905

Forum statistics

Threads
2,276,228
Posts
28,968,452
Members
1,231,174
Latest member
JJJJMMMM
Back
Top