title: Undefined index variable in $_REQUEST in PHP, getting a boolean value when using ISSET()
body: <p>I have used <code>$value = (isset($_REQUEST['value']))</code> to define the index variable. However, <code>$value</code> variable shows as a type Boolean and value of 0 or 1 in the debugger, which results in not getting the correct results when the <code>$value</code> is used with a (if) statement.</p>
  
  <pre><code>$page_limit = (isset($_REQUEST["list_page"]));
  
  $viewdate = (isset($_REQUEST["viewdate"]));
  </code></pre>
  
  <p>How do I correct the following so that the index is defined?</p>
  
  <pre><code>if($_REQUEST["viewdate"] == '') {
  
        $viewdate = 'All';
    } else {
  
      $viewdate = $_REQUEST["viewdate"];
      }
  
  $targetpage = "newindex.php?viewdate=".$_REQUEST["viewdate"]."&amp;search=Search";           
  
  $page = (isset($_REQUEST['page']));
  
  if($page_limit == '') {
  </code></pre>
  
  <p>The code above works, without the isset() function, but displays Notice - E messages</p>