PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
You're right, it is javascript. I don't quite remember if this event is stored in Mozilla and it's variants, but in IE there's window.onpaste() which defaults to null. I'm not entirely sure if you can force IE to paste or not, if possible, it would probably be window.paste()
I'm sure a java applet would be able to handle pasting an image into an area, then converting it to binary before sending it to a php page to be saved to a database, or into an image.
if you would just use text, you could possible echo the clipboard-content into an hidden-field with JS, and then submit it (either with user clicking or JS)
vigge89 wrote:if you would just use text, you could possible echo the clipboard-content into an hidden-field with JS, and then submit it (either with user clicking or JS)