PHP Sanitation Security User Input POST Request Safely
Page 1 of 1
PHP Sanitation Security User Input POST Request Safely
w3schools.com/php/php_filter.asp
w3schools.com/php/showphp.asp?filename=demo_filter2
Live Temp Example
http://jnet.sytes.net/apps/random/temperature/
File Example Including Temperature Converter Code
https://app.box.com/s/ufm5budw58zq6z4goobdtxzhv1ikc0w9
Re: PHP Sanitation Security User Input POST Request Safely
A Class To Do This Well For You
- Code:
<?php
// Class::Function
class cleanMe {
public function cleanMefun($input) {
$input = mysql_real_escape_string($input);
$input = htmlspecialchars($input, ENT_IGNORE, 'utf-8');
$input = strip_tags($input);
$input = stripslashes($input);
return $input;
}
}
cleanMe::cleanMefun($_post['.....']);
// mysqli_real_escape_string(connection,escapestring);
?>
Similar topics
» PHP WEB SERVER SECURITY PHP USER INPUT SANITASION SANATIZE
» Style Select And User Input Boxes With CSS
» Linux Automation & Timers Bash Script Examples
» Linux Bash Setting Var & Fallback Var Setting With User Input
» Safely Power Off RPI 3 From A Webpage Toggle Switch Jquery PHP & Python
» Style Select And User Input Boxes With CSS
» Linux Automation & Timers Bash Script Examples
» Linux Bash Setting Var & Fallback Var Setting With User Input
» Safely Power Off RPI 3 From A Webpage Toggle Switch Jquery PHP & Python
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|