Sometimes the value of the variable needs to be the number zero (0) but when I post it, then it does the redirect. Is there I way I can make it tell the difference between the post zero and a non-posted value.
The value is posted through a standard HTML form and the number crunching is done via PHP.
Expand|Select|Wrap|Line Numbers
- if ($_SESSION['value']=="")
- {
- if (!($_POST['value']))
- {
- ?>
- <script type="text/javascript">
- location.replace("index.php");
- </script>
- <?php
- }
- else
- {
- $id=$_POST['value'];
- $_SESSION['value']=$id;
- $setup=0;
- }
- }