FAQ

pablo.prieto escribió:
Hola.
Creo que puede ser problema del salto de línea dentro del texto que
muestra el alert.
Efectivamente. Lo he solucionado de este modo:

<?php
class error{

function error($valor){ ?>
<script language="JavaScript" type="text/javascript">
alert('<?php echo utf8_decode(str_replace("\n"," ",$valor)); ?>');
history.back();
</script>
<?php

}
}

?>

Gracias a todos.

- --


< ¡¡Nos vemos!! >
----------------------------
\
\
.::!!!!!!!:.
.!!!!!:. .:!!!!!!!!!!!!
~~~~!!!!!!. .:!!!!!!!!!UWWW$$$
:$$NWX!!: .:!!!!!!XUWW$$$$$$$$$P
$$$$$##WX!: .<!!!!UW$$$$" $$$$$$$$#
$$$$$ $$$UX :!!UW$$$$$$$$$ 4$$$$$*
^$$$B $$$$\ $$$$$$$$$$$$ d$$R"
"*$bd$$$$ '*$$$$$$$$$$$o+#"
"""" """""""

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupphp-general-es @
categoriesphp
postedApr 17, '08 at 3:14p
activeApr 17, '08 at 3:14p
posts1
users1
websitephp.net

1 user in discussion

Pablo Braulio: 1 post

People

Translate

site design / logo © 2022 Grokbase