---
title: "Need answer for this blow cod"  
description: "Need answer for this blow cod"  
author: "Rahuman khan"  
published: 2014-09-28  
updated: 2014-09-28  
canonical: https://www.mindstick.com/forum/2274/need-answer-for-this-blow-cod  
category: "javascript"  
tags: ["javascript", "php"]  
reading_time: 1 minute  

---

# Need answer for this blow cod

this is my [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii)\
\

```
$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><?phpecho "hi";?></body></html>
```

\
The above code says only the [alert box](https://www.mindstick.com/forum/117/problem-in-displaying-alert-box-in-asp-dot-net) while [page](https://www.mindstick.com/articles/13031/why-to-make-a-wikipedia-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](https://www.mindstick.com/forum/2005/radio-button-redirect) to member-login.[php](https://www.mindstick.com/articles/12149/php-constant-and-php-variables) page\


---

Original Source: https://www.mindstick.com/forum/2274/need-answer-for-this-blow-cod

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
