🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #1978

Re: Evitar recarga de paginas

#1978
From: RobertoCL
Date: Wed, 12 Apr 2006 22:46
27 lines
1985 bytes
"SorbitoL" <ineira@VETEERRE.NET> escribi� en el mensaje 
news:e1jtkj$fv1$1@news.nivel5.cl...
>
> Holas:
> Estoy haciendo una aplicacion web (usando php,mysql,xhtml,javascript) , 
> que incluye varios formularios para mantener datos.
>
> Me he dado cuenta de que al presionar el boton "recargar" del navegador 
> cuando se esta en una pagina a la que se accedio
> luego de enviar un Form, el navegador intenta enviar nuevamente los datos 
> POST, lo cual me causa algunos problemas
> en determinadas situaciones.
>
> �Existe alguna forma (me imagino con JavaScript) de restringir o el uso 
> del boton recargar, o bien tomar alguna medida para
> evitar el reenvio de los datos POST cuando un usuario recargue una pagina?
>
Cambiar el navegador :P, he hay el problema
Una soluci�n, aunque depende de la situaci�n, despu�s fr que guardaste los 
datos redirigir
ej
..."mysql_query('insert " ....
header ("Location: php.php?estado=2");
exit;
Si se quiere conservar datos: sesi�n.
--
RCL 
Technical Details
Message-ID: <e1jvos$avr$1@proxy.ifxnw.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news.nivel5.cl!news2.ifxnw.cl!not-for-mail
References: <e1jtkj$fv1$1@news.nivel5.cl>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,5c031e084ea2ac0a
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news.nivel5.cl!news2.ifxnw.cl!not-for-mail
From: "RobertoCL" <rcl2020NOSPAM@hotmail.com>
Newsgroups: chile.comp.programacion
Subject: Re: Evitar recarga de paginas
Date: Wed, 12 Apr 2006 18:46:01 -0400
Organization: IFX Networks News Server
Lines: 29
Message-ID: <e1jvos$avr$1@proxy.ifxnw.cl>
References: <e1jtkj$fv1$1@news.nivel5.cl>
NNTP-Posting-Host: 200.73.30.63
X-Trace: proxy.ifxnw.cl 1144881756 11259 200.73.30.63 (12 Apr 2006 22:42:36 GMT)
X-Complaints-To: abuse@ifxnetworks.com
NNTP-Posting-Date: Wed, 12 Apr 2006 22:42:36 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Response