[advanced search]
Next Live Event: NamePros Live Auction, May 23rd at 6PM EDT
Results from the May 8th live auction are here.
18 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming > CODE
User Name
Password

Old 12-08-2007, 07:45 PM   · #1
RegisterRants
DNOA Member
 
RegisterRants's Avatar
 
Name: Jason
Trader Rating: (9)
Join Date: Oct 2006
Posts: 1,130
NP$: 133.37 (Donate)
RegisterRants has a spectacular aura aboutRegisterRants has a spectacular aura about
Clean Input

These are some code snippets for use in cleaning input. Please note that these are NOT the complete security solution; for best results, you should use Whitelist-based authentication.

For AJAX requests:

Code:
foreach ($_POST as $key => $value) $_POST[$key]=trim(strip_tags(urldecode($value)));


For standard forms:

Code:
foreach ($_POST as $key => $value) $_POST[$key]=trim(strip_tags($value));


Jason


Please register or log-in into NamePros to hide ads
RegisterRants is offline  
  Reply With Quote
Reply

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


Site Sponsors
Find out now! www.clixnhits.com Get Me Visits
Advertise your business at NamePros
All times are GMT -7. The time now is 08:29 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0