refresh form in go back

L

Licass

i have this form that sends to db and email, and i want that if users use
backward button in browser , the form values to be reset

thanks
 
S

Stefan B Rusynko

What server side language are you using

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|i have this form that sends to db and email, and i want that if users use
| backward button in browser , the form values to be reset
|
| thanks
|
|
 
S

Stefan B Rusynko

Try adding at top of page

Response.AddHeader "Cache-Control", "No-cache"
Response.AddHeader "Pragma", "No-cache"
Response.CacheControl = "No-cache"
Response.Expires = -1
Response.ExpiresAbsolute=#Jan 31, 2006 12:00:00#
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| ASP
| "Stefan B Rusynko" <[email protected]> escreveu na mensagem
| | > What server side language are you using
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| | > |i have this form that sends to db and email, and i want that if users use
| > | backward button in browser , the form values to be reset
| > |
| > | thanks
| > |
| > |
| >
| >
|
|
 
S

Stefan B Rusynko

Your attachment (.asp) is blocked by OE
- w/o seeing it hard to say

Normal approach is to set a variable (say a session variable) after 1st write and prevent further writes if it is present

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| theres a problem. the page that stores the data in db and send the email can
| be refreshed and send over and over again the data to db and email. how to
| manage this?
|
| "Stefan B Rusynko" <[email protected]> escreveu na mensagem
| | > Try adding at top of page
| >
| > Response.AddHeader "Cache-Control", "No-cache"
| > Response.AddHeader "Pragma", "No-cache"
| > Response.CacheControl = "No-cache"
| > Response.Expires = -1
| > Response.ExpiresAbsolute=#Jan 31, 2006 12:00:00#
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| | > | ASP
| > | "Stefan B Rusynko" <[email protected]> escreveu na mensagem
| > | | > | > What server side language are you using
| > | >
| > | > --
| > | >
| > | > _____________________________________________
| > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > | > "Warning - Using the F1 Key will not break anything!" (-;
| > | > To find the best Newsgroup for FrontPage support see:
| > | >
| http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > | > _____________________________________________
| > | >
| > | >
| > | | > | > |i have this form that sends to db and email, and i want that if users
| use
| > | > | backward button in browser , the form values to be reset
| > | > |
| > | > | thanks
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
|
 
L

Licass

can u help me with the code?
Stefan B Rusynko said:
Your attachment (.asp) is blocked by OE
- w/o seeing it hard to say

Normal approach is to set a variable (say a session variable) after 1st
write and prevent further writes if it is present
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| theres a problem. the page that stores the data in db and send the email can
| be refreshed and send over and over again the data to db and email. how to
| manage this?
|
| "Stefan B Rusynko" <[email protected]> escreveu na mensagem
| | > Try adding at top of page
| >
| > Response.AddHeader "Cache-Control", "No-cache"
| > Response.AddHeader "Pragma", "No-cache"
| > Response.CacheControl = "No-cache"
| > Response.Expires = -1
| > Response.ExpiresAbsolute=#Jan 31, 2006 12:00:00#
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| | > | ASP
| > | "Stefan B Rusynko" <[email protected]> escreveu na mensagem
| > | | > | > What server side language are you using
| > | >
| > | > --
| > | >
| > | > _____________________________________________
| > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > | > "Warning - Using the F1 Key will not break anything!" (-;
| > | > To find the best Newsgroup for FrontPage support see:
| > | >
| http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > | > _____________________________________________
| > | >
| > | >
| > | | > | > |i have this form that sends to db and email, and i want that if users
| use
| > | > | backward button in browser , the form values to be reset
| > | > |
| > | > | thanks
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top