Cless Posted August 17, 2007 Share Posted August 17, 2007 Is there a way to disable PHP, HTML, and the sort in textboxes and input fields? There are things called SQL Injections which are usually used in an url or input field to steal data from the database. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/65519-solved-disable-coding-in-textboxestextfields/ Share on other sites More sharing options...
phpSensei Posted August 17, 2007 Share Posted August 17, 2007 To Prevent Sql Inject, just use the mysql_real_escape_string.. Please be more specific Quote Link to comment https://forums.phpfreaks.com/topic/65519-solved-disable-coding-in-textboxestextfields/#findComment-327152 Share on other sites More sharing options...
Cless Posted August 17, 2007 Author Share Posted August 17, 2007 Sorry. I wasn't sure what else to say. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/65519-solved-disable-coding-in-textboxestextfields/#findComment-327154 Share on other sites More sharing options...
Fadion Posted August 17, 2007 Share Posted August 17, 2007 Also consider htmlentities() to prevent xss (cross site scripting) Quote Link to comment https://forums.phpfreaks.com/topic/65519-solved-disable-coding-in-textboxestextfields/#findComment-327157 Share on other sites More sharing options...
Cless Posted August 17, 2007 Author Share Posted August 17, 2007 Alright. Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/65519-solved-disable-coding-in-textboxestextfields/#findComment-327158 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.