yo tengo este php:
Código:
y este form:<? $fecha= date('d/m/Y'); $archivo= "fichero.txt"; $titulo= $_POST['titulo']; $contenido1 = $_POST['contenido']; $contenido2 = str_replace('\"','"',$contenido1); $contenido3 = str_replace("\'","'",$contenido2); $contenido4 = htmlentities($contenido3); $fch= fopen($archivo, "w"); fwrite($fch, $contenido4); fclose($fch); ?>
Código:
como veran.. el php escribe el fichero.txt, lo que yo quiero hacer.. es poner un select en el form que me permita escribir el mismo fichero pero en una carpeta... osea yo tengo<form name="form1" method="post" action="grab.php"> <table width="100%" border="0" cellpadding="0" bgcolor="#333333"> <tr> <td width="100"><span class="other_text">Titulo:</span></td> <td><input width="300" type="text" name="titulo"></td> </tr> <tr> <td valign="top"><span class="other_text">Exploit:</span></td> <td><textarea style="width:100%; height:300px" name="contenido"></textarea><input name="" type="submit" value="Enviar"></td> </tr> </table> </form>
Código:
Quiero un selecto donde yo elija la carpeta donde se encuentra el fichero a modificar www/index.html www/grab.php www/fichero.txt www/1/fichero.txt www/2/fichero.txt www/3/fichero.txt
![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)
Desde ya muchas gracias
![Afirmando](http://static.forosdelweb.com/fdwtheme/images/smilies/afirmar.gif)
![Afirmando](http://static.forosdelweb.com/fdwtheme/images/smilies/afirmar.gif)
![Afirmando](http://static.forosdelweb.com/fdwtheme/images/smilies/afirmar.gif)
![Afirmando](http://static.forosdelweb.com/fdwtheme/images/smilies/afirmar.gif)
![de acuerdo](http://static.forosdelweb.com/fdwtheme/images/smilies/dedosarriba.png)
![de acuerdo](http://static.forosdelweb.com/fdwtheme/images/smilies/dedosarriba.png)