Hola, bueans tardes estoy haciendo un tipo de aplcacion web que con un archivo PHP y unas cajas de texto modifica un archivo .txt la cual es llamado por el .html y copia el valor nuevo reflejandolo en el .html pero me ocurre el siguiente problema, cuando abro la web desde un Movil se abre normal pero cuando modifico el valor en la caja de texto no cambia, le doy actualizar varias veces y aparece el valor antiguo al parecer el problema es con el cache, inserte unos codigos para no guardar cache entre el HEAD y aun no me sirve, elimino el cache del historial y se refleja el valor que cambie...
Inserte unos codigos en el Head y aun no funciona no se que estara pasando aqui dejo los archivos:
Este es el .HTML
<head>
<meta http-equiv="expires" content="0">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">
</head>
<link rel="shortcut icon" href="favicon.ico">
<title>CAMBIAR SALDO</title>
<form action="enviar26.php" method="post">
<body style="background-color:gray;">
<script type="text/javascript">
if (screen.width<1024)
function zoom() {
document.body.style.zoom = "250%"
}
else
if (screen.width<1280)
function zoom() {
document.body.style.zoom = "220%"
}
else
if (screen.width<1900)
function zoom() {
document.body.style.zoom = "100%"
}
else
if (screen.width<800)
function zoom() {
document.body.style.zoom = "200%"
}
else
if (screen.width<480)
function zoom() {
document.body.style.zoom = "200%"
}
else
if (screen.width<1000)
function zoom() {
document.body.style.zoom = "200%"
}
</script>
<body onload="zoom()">
</body>
<center>
<style>
<body leftmargin="-15" topmargin="10" >
</style>
<style type="text/css">
.textfield
{
border: 10px solid #ccc;
box-shadow: 0px 0px 0px 00px #fff,
0px 0px 0px 0px #ccc,
0px 0px 0px 0px #999;
border-radius: 100px;
color: #1;
font-size: 10pt;
padding: .25rem .5rem;
transition: all .25s linear;
}
.textfield:focus
{
border: 1px solid rgba(0,144,255,.4);
}
<!--
#Layer158 {
text-shadow: -1px -1px 1px #000, 1px 1px 1px #000, -1px 1px 1px #000, 2px -1px 1px #000;
}
}
#Layer9 {
position:absolute;
width:00px;
height:150px;
z-index:3;
left: 50%;
top: 50%;
margin-top: -190px;
margin-left: 43px;
}
.textfield1 { border: 1px solid #ccc;
box-shadow: 0px 0px 0px 00px #fff,
0px 0px 0px 0px #ccc,
0px 0px 0px 0px #999;
border-radius: 2px;
color: #1;
font-size: 15pt;
padding: .35rem .10rem;
transition: all .35s linear;
}
-->
</style>
<p> </p>
<br>
<img src="saldo1.png" style="width: 300px; height: 100px;"
<br>
<div id="Layer5">
<input id="monto" class="textfield1" title="Se necesita tu nombre de Usuario" name="monto" type="text" size="14" placeholder="MONTO" autocomplete="off" style="width: 270px; height: 39px;" required="">
</div>
<br>
<div id="Layer4"><input name="submit" type="image" <img src="continuar1.png"
</div>
<A href="datos1.php">
<IMG src="reiniciar1.png" ></a>
<br>
<A href="hora.php">
<IMG src="hora.png" ></a>
<br>
<div id="Layer158">
<span style="font-size:26px;">
<p><span style="font-family:arial,helvetica,sans-serif;"><span style="color:#FFFFFF;"><strong>SALDO ACTUAL:
<br><script language="javascript" src="./editar/nombre.txt"></script> <script language="javascript">document.writeln(texto6 + ""); document.writeln(texto);</script>
</strong>
</span>
</span></span></p>
</div>
</center>
y este es mi arhivo php enviar26.php
<?php
$monto="";
if (!empty($_REQUEST['monto'])){ $monto=$_REQUEST['monto'];
}
//Luego sobrescribo el txt
$archivo="./editar/nombre.txt";
$file=fopen($archivo,"a"); fwrite($file,"".PHP_EOL
.PHP_EOL
. "var texto6= \"$monto\"" .PHP_EOL
.PHP_EOL
. PHP_EOL
.PHP_EOL
.PHP_EOL
); header("Location: hecho00.html"); ?>
este vendria siendo el archivo llamado nombre.txt
var texto6= "160.000 "
var texto6= "170.000 "
var texto6= "10.000 "
var texto6= "100.000,55 "
Como ven el archivo .txt solo recibe el valor que coloco en la caja de texto del html el cual refleja el ultimo valor en este caso 100.000,55 si ingreso otro valor nuevo en el html, aqui en el .txt deberia salir de ultimo siendo reflejado.