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. 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 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! 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) 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. 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
Archived
This topic is now archived and is closed to further replies.