Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 16th, 2012  |  syntax: None  |  size: 0.46 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Why session(exam) not starting at 1
  2. <?php
  3. if ($sessionMinus = $_SESSION['initial_count']) {
  4.     $action = ($sessionMinus = $_SESSION['initial_count']) ? "create_session2.php" : $_SERVER['PHP_SELF'];
  5. }
  6. ?>
  7.  
  8. <body>
  9. <h1>SESSION (<?php echo $_SESSION['id'] ?>) <?php echo $sessionMinus ?> OF <?php echo $_SESSION['initial_count'] ?></h1>
  10.  
  11. <form id="QandA" action="<?php echo htmlentities($action); ?>" method="post" onsubmit="return validateForm(this);">
  12. </form>
  13. </body>