You get access to those parameter via $_GET in PHP. $_GET['this'] will contain the strong "that" then.
PHP Code:
<input type="hidden" name="referralid"
value="<?php echo htmlspecialchars($_GET['referralid'], ENT_QUOTES); ?>">
This is all in the docs: http://www.php.net/manual/en/languag...s.external.php
This is just a very basic example but it might be helpful to lead you some way. If real(tm) money is involved, I would advice you to get in touch with someone you can discuss your problem with more details and who can teach you about the things you need to learn. I just suggest that, because this can have security implications and you business processes might need some futher thinking, but this is out of the scope for my answer.