Re: [PHP] Problem when adding special characters to an XML file

2010-07-15 Thread te0t3l
Thanks for your offer Richard, but I solved the problem deleting the UTF-8 encoding label in the XML file like this: before: after:

Re: [PHP] Problem when adding special characters to an XML file

2010-07-15 Thread te0t3l
Hi again, Now I download the editing XML file and open it in windows with notepad and save with utf-8 encode, then upload the file again and can see the correct characters, what's the problem? I'm specifying the correct encoding when process the form and editing the XML file: $XML = new DOMDocume

[PHP] Problem when adding special characters to an XML file

2010-07-14 Thread te0t3l
Hi, I'm editing an XML file through a form: $XML = new DOMDocument('1.0', 'UTF-8'); $XML->preserveWhiteSpace = false; $XML->load("../xml/exposiciones.xml"); $raiz = $XML->documentElement; $nodoContenedor = $XML->getElementsByTagName('texto'); foreach ($nodoContenedor as $NuevoNodo)

Re: [PHP] Validate if the field of a form is empty

2010-07-13 Thread te0t3l
It works fine for me, foreach ( $_FILES['archivo']['name'] as $file ) { //echo $file; } if($file == ""){ echo "empty"; }else{ //continue... } Thanks a lot Jim! Te0

[PHP] Validate if the field of a form is empty

2010-07-12 Thread te0t3l
Hi, I need to validate a field that work with Multifile plugin of Jquery, I want to check if the field is empty with php. [code] [code] I've tried different ways but it does not work: for example: $field = $_FILES["archivo"]["name"]; $field = $_FILES["archivo[]"]["name"]; i dont know how to va

Re: [PHP]

2010-07-04 Thread te0t3l
Thanks Ash, and so sorry I forgot to use the subject... ok, I'll read about insertBefore () method, Regards, te0

[PHP]

2010-07-03 Thread te0t3l
Hi, I have a photo gallery and I update it with a XML file like this: $NuevaCol = new SimpleXMLElement("../xml/" . $coleccionXML . '.xml', null, true); $first = $NuevaCol->addChild('coleccion'); $attsNuevaCol = $first->addAttribute('nombre_col', utf8_encode($titNuevaColEspacios)); $attsNuevaCol =