Jump to content


Photo

How would I be able to ban javascript and PHP from forms?


  • Please log in to reply
4 replies to this topic

#1 Chevy

Chevy
  • Members
  • PipPipPip
  • Advanced Member
  • 163 posts

Posted 11 July 2006 - 10:30 PM

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!

#2 jworisek

jworisek
  • Members
  • PipPipPip
  • Advanced Member
  • 112 posts

Posted 11 July 2006 - 10:46 PM

well, you could just scan the profiles for telltale code when they submit...

like <script type=Javascript or <? or <?php  etc

#3 Chevy

Chevy
  • Members
  • PipPipPip
  • Advanced Member
  • 163 posts

Posted 11 July 2006 - 10:57 PM

Hmmm I am not familar with telltale code

#4 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,016 posts

Posted 11 July 2006 - 11:12 PM

http://www.php.net/strip_tags
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#5 Chevy

Chevy
  • Members
  • PipPipPip
  • Advanced Member
  • 163 posts

Posted 12 July 2006 - 12:08 AM

Thanks a bunch! I know that was a newbie question, sorry for wasting your time :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users