aynaz aynaz - 9 months ago 49
Javascript Question

Create paste button with php

I want paste clipboard in many text fields so I want to create a paste button to paste anything in clipboard to a text field.

How can I create that??

Answer Source

You can't make a "paste" button PHP. When you say paste, I am assuming you are referring to pasting what is in the clipboard. However, this can be accomplished through JavaScript.

Here's a super nice resource on how to copy and paste in JavaScript: