WebRef.eu  - Internet Marketing and Online Business Resources

Home | Contact Us

Google
 

PHP Form Input Sanitisation - Remove Potentially Dangerous Code from a Form Input Field

The below code snippet will remove any potentially dangerous code, e.g. <script> from a form field by replacing it with a space:

//remove any dangerous code from ReviewDesc
$ReviewDesc = str_replace(array("<script>", "<SCRIPT>", "MIME", "Content-Type"), "", $ReviewDesc);

 



Join Top Affiliate Networks Join Top Affiliate Networks >>>



Paid On Results








Home | Contact Us

All Content ©2006 WebRef.eu