I'm setting up the affiliate promo materials page for my product on my website.
The idea is that at the top of the page a user can enter their affiliate ID number in a text field and click a button to have all the affiliate link html code for the various promotional materials (text link, banner ads, etc.) displayed on the page in textarea boxes, update with their affiliate ID in the affiliate links and then they can simply copy and paste the html codes from any of the textarea boxes without having to worry about editing the html code manually themselves.
I've attached an example .php file with my initial attempts at this. It is way above my level of knowledge so I need some help getting the functionality working in this example .php page. I can integrate the code you create in to my website after you complete it.
Next to each textarea box you'll see there is a "copy code to clipboard" button. I'd like the visitor to be able to simply click each button to copy the current code in the textarea to their system clipboard.
In the example .php file provided you'll see there are a few textarea boxes. On my real webpage there will be a lot more, and I will add more in the future so it needs to be relatively easy for my to add more (I'm good with deciphering code and working out what to do so it doesn't need to be completely idiot-proof, just obvious enough how to replicate it for additional textareas on the page).
I'm looking to get this completed quickly, within a day or so.
Thanks for looking and just shout if you have any questions at all.