Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/01/2012, 10:51
Avatar de dahngeek
dahngeek
 
Fecha de Ingreso: enero-2012
Mensajes: 7
Antigüedad: 13 años, 1 mes
Puntos: 0
Pregunta Formulario a XML

Hola, mi idea es crear un formulario con varios imput, y que estos se conviertan a un Archivo XML
"info.xml"
Código:
<Informacion>
<Nombre>Buggs</Nombre>
<apellido>Conejo</apellido>
<email>N/A</email>
<Extra>noticia o comentario</Extra>
</Informacion>
Digamos
Código:
<form action="convertir.php" method="post">
<table align="center" border="0">
<tr>
<td align="left" height="40px">Nombre</td>
<td><input id="name" name="name" size="40" type="text"></td>
</tr>
<tr>
<td align="left" height="40px">Apellido</td>
<td><input id="last" name="last" size="40" type="text"></td>
</tr>
<tr>
<td align="left" height="40px">Email</td>
<td><input id="author" name="author" size="40" type="text"></td>
</tr>
<tr>
<td>Noticia/Comentario:</td>
<td><textarea cols="40" rows="4" name="description"></textarea></td>
</tr>
<tr>
<td colspan="2" align="center"><hr /><input value="Enviar" type="submit"></td>
</tr>
</table>
</form>
Y que ese formulario envíe información a "info.xml" y que si se edita el formulario se edite el xml
Lo que no se es que poner en el php para que haga eso


Gracias por Adelantado.

Última edición por dahngeek; 05/01/2012 a las 11:04