PHP Classes

not code HTML

Recommend this page to a friend!

      Contact form  >  All threads  >  not code HTML  >  (Un) Subscribe thread alerts  
Subject:not code HTML
Summary:FUNCTION to avoid to insert I cosay HTML
Messages:2
Author:B. Aguirre C.
Date:2007-03-11 16:27:41
Update:2007-03-12 04:46:33
 

  1. not code HTML   Reply   Report abuse  
Picture of B. Aguirre C. B. Aguirre C. - 2007-03-11 16:27:41
some idea?

FUNCTION to avoid to insert I cosay HTML

>>>>>>>>>>

function validatemessage($message) // this function to validate message
{
if(get_magic_quotes_gpc())
$message = stripslashes($message);
{
return htmlspecialchars($message, ENT_QUOTES);
}
else
{
return 0;
}
}


  2. Re: not code HTML   Reply   Report abuse  
Picture of ravichandran J ravichandran J - 2007-03-12 04:46:33 - In reply to message 1 from B. Aguirre C.
thanks for your comment