the_oliver Posted July 18, 2007 Share Posted July 18, 2007 Hello, I was wondering if it is possible to stop people from using copy and paste to fill a text feild? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/60546-stopping-pasting-into-a-textfeild/ Share on other sites More sharing options...
ToonMariner Posted July 18, 2007 Share Posted July 18, 2007 not with anything that can't be easily by passed with just a little browser knowledge.... Don't bother validating/restricting things client side - by all means implement it as it makes the user experience that much more pleasant - but DON'T rely on it... Quote Link to comment https://forums.phpfreaks.com/topic/60546-stopping-pasting-into-a-textfeild/#findComment-301261 Share on other sites More sharing options...
Oldiesmann Posted July 18, 2007 Share Posted July 18, 2007 No matter what you do, there will always be a way around it, and it will only annoy and frustrate your users. Quote Link to comment https://forums.phpfreaks.com/topic/60546-stopping-pasting-into-a-textfeild/#findComment-301336 Share on other sites More sharing options...
the_oliver Posted July 18, 2007 Author Share Posted July 18, 2007 Its not realy a security thing. I just would need them to type into the feild rather then pasting in. So as to avoid strange charictors creaping in! - Ta! Quote Link to comment https://forums.phpfreaks.com/topic/60546-stopping-pasting-into-a-textfeild/#findComment-301456 Share on other sites More sharing options...
ToonMariner Posted July 18, 2007 Share Posted July 18, 2007 use htmlentities to encode the 'strange characters' Quote Link to comment https://forums.phpfreaks.com/topic/60546-stopping-pasting-into-a-textfeild/#findComment-301588 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.