Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/09/2007, 19:49
gesking
 
Fecha de Ingreso: diciembre-2006
Mensajes: 294
Antigüedad: 17 años, 4 meses
Puntos: 2
Re: problema con str_replace

Ok grax, pero yo quiero insertar diferentes links, mira así tengo la funcion:

Código PHP:
function quitar($texto) {
$texto trim($texto) ;
$texto htmlspecialchars($texto) ;
$texto str_replace(chr(160),'',$texto) ;
$texto stripslashes($texto);
$texto addslashes($texto);
$texto str_replace('[b]','<b>'$texto);
$texto str_replace('[/b]','</b>'$texto);
$texto str_replace('[link="','<a href="'$texto);
$texto str_replace('"]','" target=_blank>'$texto);
$texto str_replace('[/link]','</a>'$texto);
return 
$texto ;

Lo que hago es enviar un formulario a una base de datos...