🐘 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
484
Guests online
2,282
Total visitors
2,766

Forum statistics

Threads
2,331,961
Posts
29,261,410
Members
1,147,922
Latest member
dvsadvocate
Back
Top