Users Pricing

forum

Home Forums Need answer for this blow cod – MindStick

Need answer for this blow cod

Rahuman khan 1994 28 Sep 2014
this is my code
$usr = $_SESSION['uid'];
if($usr=="")
    { ?>
    <script type="text/javascript">
    window.onload = function () {
       alert('Welcome!');
       window.location.href = "member-login.php";
   }
    </script>
   <?php }
  
   else {
?>
<html>
<body>
<?php
echo "hi";
?>
</body>
</html>

The above code says only the alert box while page loading i want solution for the current page want to show on
bacgrount and alert box is in that page and while clicking alert box it redirect to member-login.php page

0 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md