Guest User

Untitled

a guest
Apr 16th, 2012
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment