Chevy Posted July 11, 2006 Share Posted July 11, 2006 I am making a site and I do not want the users to use javascript of PHP in thier profiles, so how would I be able to ban it when they submit the form?Thanks a bunch! Quote Link to comment https://forums.phpfreaks.com/topic/14334-how-would-i-be-able-to-ban-javascript-and-php-from-forms/ Share on other sites More sharing options...
jworisek Posted July 11, 2006 Share Posted July 11, 2006 well, you could just scan the profiles for telltale code when they submit...like <script type=Javascript or <? or <?php etc Quote Link to comment https://forums.phpfreaks.com/topic/14334-how-would-i-be-able-to-ban-javascript-and-php-from-forms/#findComment-56480 Share on other sites More sharing options...
Chevy Posted July 11, 2006 Author Share Posted July 11, 2006 Hmmm I am not familar with telltale code Quote Link to comment https://forums.phpfreaks.com/topic/14334-how-would-i-be-able-to-ban-javascript-and-php-from-forms/#findComment-56485 Share on other sites More sharing options...
Barand Posted July 11, 2006 Share Posted July 11, 2006 http://www.php.net/strip_tags Quote Link to comment https://forums.phpfreaks.com/topic/14334-how-would-i-be-able-to-ban-javascript-and-php-from-forms/#findComment-56495 Share on other sites More sharing options...
Chevy Posted July 12, 2006 Author Share Posted July 12, 2006 Thanks a bunch! I know that was a newbie question, sorry for wasting your time :) Quote Link to comment https://forums.phpfreaks.com/topic/14334-how-would-i-be-able-to-ban-javascript-and-php-from-forms/#findComment-56535 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.