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