Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. $keyword = trim($_GET["Keyword"]);
  2.  
  3. $url = "webpage.php?";
  4. $url .= "&Keyword=$keyword";
  5.  
  6. $shopByStore = $_GET["store"];
  7. if (!empty($shopByStore)) {
  8. $url .= "&store=$shopByStore";
  9. }
  10. // with 7 more GET methods potentially retrieving values for the URL parameters
  11.  
  12. <a href="<?php echo $url; ?>">anchor text</a><br>
  13.  
  14. if (isset($_GET["store"])) {
  15. $_SESSION["shopByStore"] = $_GET["store"];
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement