Ya hice las pruevas correspondientes y me funciono perfecto!!!
Me escribe en el archivo de configuracion, sin embargo cuando pongo otro input de tipo texto dentro del formulario agrego las variables correspondientes y proceso a editar informacion si uno de los input de tipo texto no le pongo nada se guarda con valor "0" es decir...
Tengo 2 input de tipo text uno que dice Compañia y otro que dice Nombre, cuando procedo a cambiar la informacion de Compañia y dejo en blanco Nombre, Nombre se guarda vacio.... asi que decidi hacer esto...
Formulario:
Código PHP:
Ver original<?php
require('config/config.php');
?>
<form action="action.php" method="get">
<label>Nombre de compañia</label>
<input type="text" name="compania" value="<?php echo $nombre_compania ?>"/>
<br />
<label>Titulo web</label>
<input type="text" name="titulo" value="<?php echo $titulo_web ?>"/>
<button type="submit" name="submit"><i></i>Save changes</button>
</form>
Action.php
Código PHP:
Ver original<?php
<?php
$nombre_compania="' . $_GET['compania'] . '";
$titulo_web="' . $_GET['titulo'] . '";
?>
');
?>
config/config.php
Código PHP:
Ver original<?php
$nombre_compania="Test";
$titulo_web="Test";
?>
Me sirvio mucho su ayuda,
Gracias! :D
Y disculpen si ocacione molestias :$