Advertisement
Guest User

display.php

a guest
Sep 7th, 2013
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1. <?php
  2. session_start();
  3.  
  4. if (!isset($_SESSION['keyID']) || !isset($_SESSION['vCode'])) {
  5.     //User tried to go here but didn't submit a keyid/vcode yet
  6.     $_SESSION['error'] = 'Please submit a key ID and verification code';
  7.     header('Location: index.php');
  8. }
  9.  
  10. //Validate the key ID and vcode again - always ASSUME that there is a possibility they are invalid
  11. $keyID = $_SESSION['keyID'];
  12. $vCode = $_SESSION['vCode'];
  13.  
  14. if (!$valid_data) {
  15.     $_SESSION['error'] = "Your Key ID and Verification are invalid";
  16.     header('Location: index.php');
  17. }
  18.  
  19. //do whatever to display relevant data based on $keyID and $vCode
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement