The term you are searching is Get and Set URL params
, you can use this to set a param in an URL, like this:
add_query_arg( 'key', 'value', 'http://example.com' );
it will return:
and to get the value use this:
<?php $value_from_URL = get_query_var( 'key' ); ?>
<h1>My value i just got <?php echo $value_from_URL; ?></h1>
all of this using WordPress functions.