Forum Moderators: coopster
A1/ Which one do you used and which ones are really important?
strtolower, addslashes, trim
A2/ Which character do you remove (HTML, slashes, ")?
A3/ What about special characters?
A4/ And about hackers using MySQL command in form entry data?
Do one of you have a good function which do all in once.
---------------------------------
Secondly, I have already a membership system with interactive picture_gallery (GD). Now, I want to start a simple forum. I am a bit tired to script all by myself (although I have learned a lot from doing everything by myself), so I am looking for a free forum - the most simple it can be, let's say that something like this one is simple enough. No Phpboard, invboard - much too big.
Any link or sticky mail will appreciated
Tomda
I can not understand why this small code below do not print the result. Could someone assist me?
<?
$texte = " Charle's head is big <b> for</b> \makin / jend $ <u>jde</u> ' dee \" de ";
function var_trim ($varia) {
$varia = rtrim ($varia);
$varia = ltrim ($varia);
$varia = addslashes ($varia);
$varia = strip_tags($varia); }
function var_load ($varia) {
$varia= stripslashes ($varia);
$varia = htmlspecialchars($varia); }$texte_trim = var_trim($texte);
echo $texte_trim;
echo "<br><br> \r\n";$texte_load = var_load ($texte);
echo $texte_load;
echo "<br><br> \r\n";
?>
Thanks
function var_trim ($varia) {
$varia = rtrim ($varia);
$varia = ltrim ($varia);
$varia = addslashes ($varia);
$varia = strip_tags($varia);
return $varia; }
function var_load ($varia) {
$varia= stripslashes ($varia);
$varia = htmlspecialchars($varia);
return $varia; }
barn