[php]<?php
$form = $_POST[“formtype”];
echo “
Data filtering started…
”;echo “Form being filtered:” . $form . “
”;
switch ($form){
case “Feedback”
$safe==0;
$safeip==0;
$safefb==0;
$safename==0;
$string="[/{}<>$&;:/]"
echo “Type of filtering being used: Feedback.
”
if (preg_match($string,$userip))
$safe=0;
die(“”);
else
$ip=$clean[“ip”];
echo “IP clean
”;
$safeip=1;
if (preg_match($string,$fb)
safe=0;
die(“”);
else
$fb=$clean[“fb”];
echo “Feedback clean”;
$safefb=1;
if (preg_match($string,$name))
$safe=0;
die(“”);
else
$safename=1;
echo “Name clean”;
$name=$clean[“Name”];
if ($safename=1 && $safeip=1 && $safefb=1;)
$safe=1;
echo “Form is safe. Continuing…
”;[/php]
this is the script that runs the filtering part of my site. i don’t see why im getting errors. if someone could show me how i’m wrong instead of doing it for me i would really appreciate it.