monterrrubio

listLinks

May 20th, 2013
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. if (!empty($_POST)) {
  2.             foreach ($_POST as $guid => $status) {
  3.                 $sharedUrl[$guid] = shareSingleNote($guid);
  4.             }
  5.         $_SESSION['sharedUrls'] = $sharedUrl;
  6.         }
  7. $links = $_SESSION['sharedUrls'];
  8.             foreach (array_combine($_SESSION['notes_title'], $_SESSION['notes_guid']) as $title => $guid){
  9.                 if (!empty($links[$guid])){
  10.                     echo $title.": <a href='".$links[$guid]."'>".$links[$guid]."</a></br><br>";
  11.                 }
  12.             }
Advertisement
Add Comment
Please, Sign In to add comment