OK well let me explain in more detail 🙂
I am displaying data in a formated way in a table, example:
|Email Address | More Data | More Data |
----------------------------------------------------
|Email Address | More Data | More Data |
----------------------------------------------------
|Email Address | More Data | More Data |
----------------------------------------------------
|Email Address | More Data | More Data |
----------------------------------------------------
|Email Address | More Data | More Data |
----------------------------------------------------
Now, if this is displayed in a browser you cant simply copy all the email addresses without copying everything else as well.
So i want to make a link/button the user can click that will copy the data i pull from the database to the clipboard... For example
Click Here To Copy All EMails Addresses To YouR ClipBoard
When the user clicks the link i use PHP to goto the Database and collect all the email addresses and then parse them so as to be delimited by a "," or whatever then store this list in a variable....
Now I have my variable but how do i get it to the Clipboard?