Learn How To Prevent HTMLTags into Forms PHP Javascript SSI Tutorial Guide
RegisterLogin
Webune Forums » Tutorial and Guides » Learn How To Prevent HTMLTags into Forms PHP Javascript SSI Tutorial Guide
Learn How To Prevent HTMLTags into Forms PHP Javascript SSI Tutorial Guide
Post Description: Learn How To Prevent HTMLTags into Forms PHP Javascript SSI Tutorial Guide
Tags: Learn, How, To, Prevent, HTMLTags, into, Forms, PHP, Javascript, SSI, Tutorial, Guide
This Post Was Posted On Feb 29, 2008 By marvin #478
Post Description: Learn How To Prevent HTMLTags into Forms PHP Javascript SSI Tutorial Guide
Tags: Learn, How, To, Prevent, HTMLTags, into, Forms, PHP, Javascript, SSI, Tutorial, Guide
This Post Was Posted On Feb 29, 2008 By marvin #478
Learn How To Prevent HTMLTags into Forms PHP Javascript SSI Tutorial Guide by marvin
one way to restric html or javascript tags in php, is by detecting if html tags are being entered. this would be a example: if i input the following into a form: <a href="mydomain.com">bad link</a>, i could delete this part of the submit with the folllowing code:
Code:
$input = ereg_replace("<.*>","",$input);
with the sample code above, you removed all the html or php or javascript tags that a malicious person would have entered.
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Sun Dec 18, 2011 10:15 pm
Powered by: Webune Forums V3
Powered by: Webune Forums V3