Código :
Código PHP :
$GLOBALS["carateres_latinos_nombre"] = $_POST['Nagregar'];
$correoCreador = $_POST['Ncorreo'];
$estadoProyecto = $_POST['Nestado'];
$urlProyecto = str_replace(" ", "_", $_POST['Nagregar']);
$GLOBALS["carateres_latinos"] = $_POST['Ndescripcion'];
/* Convertir caracteres especiales de Nagregar */
function convertir_especiales_htmlA($str){
if (!isset($GLOBALS["carateres_latinos_nombre"])){
$todasA = get_html_translation_table(HTML_ENTITIES, ENT_NOQUOTES);
$etiquetasA = get_html_translation_table(HTML_SPECIALCHARS, ENT_NOQUOTES);
$GLOBALS["carateres_latinos_nombre"] = array_diff($todasA, $etiquetasA);
}
$str = strtr($str, $GLOBALS["carateres_latinos_nombre"]);
return $str;
}
$nombreProyecto = $GLOBALS["carateres_latinos_nombre"];
/* Convertir caracteres especiales de Ndescripcion */
function convertir_especiales_htmlB($str){
if (!isset($GLOBALS["carateres_latinos"])){
/*$todasB = get_html_translation_table(HTML_ENTITIES, ENT_NOQUOTES);*/
$etiquetasB = get_html_translation_table(HTML_SPECIALCHARS, ENT_NOQUOTES);
$GLOBALS["carateres_latinos"] = array_diff(/*$todasB, */$etiquetasB);
}
$str = strtr($str, $GLOBALS["carateres_latinos"]);
return $str;
}
$descripcionProyecto = $GLOBALS["carateres_latinos"];
by the way, el scrip lo saque de una pagina y me parecio util... pero se me perdio, jejeje la google todo el dia antes de acudir al foro. (no, no guardo el historial, ... )
Si requieren info extra los linkeo al post anterior donde viene el resto del codigo de mi pagina (menos este agregado):
[url=http://foros.cristalab.com/notice-use-of-undefined-constant-t93218/][/url]
