Alert and redirect in php

<?php
{
$message= "this is an alert after this page will redirect to next page";
echo "<script type='text/javascript'>
window.alert('$message');
window.location.href='http://google.com';
</script>";
}
?>

No comments:

Post a Comment