Morning everyone --

Can anyone help me with what is probably very simple?

I have a page where I want to get a variable from the URL and insert it in the buy button... so if my url is http://mywebsite.com/hangout?id=beauty

I want when someone click the button Buy to go to http://affiliatewebsite.com/join?id=beauty

Thanks in advance!

In my view alone html is not capable of doing so.
What is your server side language?

In your file you can read passed get or post variables using php arrays $_GET AND $_POST in your case, its get variable id

Now we set new link in your hangout.php as following

hangout.php

<a href='http://affiliatewebsite.com/join?id=<?php echo $_GET['id']?>' > click here to join </a>

Thank you Utrivedi, It works like a charm