Re: page content duration



The browser could be caching the error page. Try using session_start,
which will by default instruct the browser not to cache, or set these
headers explicitly in your script:

Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-
check=0
Pragma: no-cache

On Mar 29, 12:35 pm, raf.n...@xxxxxxxxx ("Alain Roger") wrote:
Hi,

i have a strange behavior on my web page.
i have a form where users can enter their email address to subscribe to
newsletter.
if user already exists the page inform him and allow him to go back thanks a
button.

clicking on this button, load another page (initial page with the form for
newsletter registration).
if user enter another email address and click on the submit button... even
if the email is not registered into DB (as user who want newsletter
registration), the page display the message "user already registered".
it's like it keeps in mind the previous email address...

here is my code :

<div id='newsletter_form'>

<form id='form_email' name='form_newsletter'
method="POST" action="../newsletter/">
<input id='field_email' type='text' name='email'
value='<?php print module_msg($welcome,$Lang, 'type_email'); ?>'
onfocus="if(this.value=='<?php print
module_msg($welcome,$Lang, 'type_email'); ?>'){this.value=''};"
onblur="if (this.value==''){ this.value='<?php
print module_msg($welcome,$Lang, 'type_email'); ?>' };" />
<input id='btn_signin' type='submit' name='signin'
value='<?php print module_msg($welcome,$Lang, 'Sign_in'); ?>' />
</form>
</div>

i just added a feature to auto-complete the text field (email) in case of
user already wrote email and clicked on back button of the registration
checking page.... just to avoid him to rewrite email address...
but anyway it should not keep it in mind... there is not $_SESSION variable.

this code works perfectly under FF, but not under Opera, safari and IE 6.

what could it be ?

--
Alain
------------------------------------
Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008

.



Relevant Pages

  • Re: Java Aplets
    ... Try clearing the cache in the Java Control Panel. ... Make sure that browser is ... I do for my own piece of mind, ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Devcon Buys Out Coastal Security, Adelphia, & Guardian
    ... > Can't let the Newsletter slide or it loses it's value. ... > alert, keep in mind that if you market to only elderly people, most ... > would be an important source of your business. ...
    (alt.security.alarms)
  • Re: HTML Protector for web pages.
    ... Pits, with them taking stuff for there own web site, I do not mind ... The browser has to be able to read your html and any objects ... not honor the redirection and will actually fetch the image. ...
    (comp.sys.acorn.misc)
  • Re: Computer Problem
    ... particulary in a search with my browser. ... One annoying destination is a google search page for ... "Be who you are and say what you feel, because those who mind don't ... matter, and those who matter don't mind." ...
    (misc.fitness.weights)
  • RE: spyware
    ... Also keep in mind that if all the below programs dont work, Take a look at the start page that your browser was set to and in the lower right hand corner there might be a Unistall/remove link that ACTUALLY WORKS. ... Hijack This! ...
    (microsoft.public.security.virus)