Page 1 of 1

strip and trim

Posted: Wed Feb 23, 2005 5:00 pm
by shiznatix
i want to strip_tags and trim a serries of varialbes with a function. here is what i have but it dosnt work.

Code: Select all

function s_t($var){
$var = strip_tags($var);
$var = trim($var);
}

s_t($email);
s_t($name);
s_t($address);
s_t($city);
s_t($room);

Posted: Wed Feb 23, 2005 5:02 pm
by feyd
hint: references.

Posted: Wed Feb 23, 2005 5:06 pm
by shiznatix
excellent hint :D

Posted: Wed Feb 23, 2005 7:41 pm
by thegreatone2176