Guest User

Untitled

a guest
Jun 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. $allPreviousVars = ???; // Could be 20+ vars
  2. echo "<a href='".$allPreviousVars."&newVar=2'>Link</a>";
  3.  
  4. <?php echo http_build_query(array_merge($_GET, array('foo'=>'bar', 'foo2'=>'bar2')); ?>
  5.  
  6. $query = mySanitizeFunction($_GET);
  7. $url = http_build_query($query) . '&newVar=2';
Add Comment
Please, Sign In to add comment