Preventing copy paste in text fields

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
sumeet
Forum Newbie
Posts: 15
Joined: Mon May 23, 2005 3:55 pm
Location: Hyderabad
Contact:

Preventing copy paste in text fields

Post by sumeet »

I want to disable copy paste in html text field .. someone told me its possible in java is it possible in php ?? i m using sessions without cookies .... any suggestions ??
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

This is purely a client side part - cannot disable it using PHP as PHP is coded on the server side - You can use JavaScript to disable copy-paste but its really of no use since, if he really wants to copy-paste then he can simply disable javascript and copy-paste. Javascript is only meant for better interface - not security.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Moved to client side
Post Reply