Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

display.php

By: a guest on Sep 7th, 2013  |  syntax: PHP  |  size: 0.62 KB  |  views: 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. <?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. ?>