BACK Button In Browser
I would like the browser to refresh the page when I'm clicking BACK
button. Does anybody know how to do that?
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Back Button On Your Browser
My question is based around back button on your browser . Currently I have a form that feeds it's information into a MySql database. I give my users the ability to add, edit, and delete entries. Because of this I use actions on my submit button, ( if action=edit) {blah blah blah} else blah blah If a users make and addition everything is fine, butif they press the back button, the action is carried out again. (because the action is in the url (www.blahhblah.com/form.php?action=add) this puts duplicate entries into the database, which is easy to fix, but annoying. Is there a way with PHP to force the timeout page everytime they try to re-enter the form from their back button?
View Replies !
View Related
Sessions And Browser Back Button
I originaly wrote a script that passed variables from script to script via query strings. When I did that, the user was able to use the back button to go back to previous pages and change form inputs. Then I changed my scripts to use session variables to get rid of the long query strings. Now, when the user hits the back button: "Warning Page has Expired" is what they get. Why is that?
View Replies !
View Related
Unable To Use The Back Button On The Browser
On my site, which uses sessions to log in and track users, if the back button on the browser is used the page times out and says you have to hit the refresh button to refresh the page you were trying to get back to. Not very user friendly, anybody have any ideas why?? There is a function called do_authentication that is called at the top of every page to check the user has logged in and has the appropriate rights. I don't think it is to do with the sessions though as if you hit the refresh buttin on the page with the error you are allowed back to the page you were trying to get to?
View Replies !
View Related
Trapping The Browser Back Button
I'm working on a web application that consists of two PHP files. The first is intended to do all the display work based on SESSION variables. The second file processes all of the _GET and _POST data, sets the necessary SESSION data then redirects to the first page. This process seems to work well while operating the application, but fails miserably when the user uses the Back button on the browser. Since the application bases it's state on SESSION variables, the Back button has no effect at all.
View Replies !
View Related
User Selects Browser Back Button
I using a alert JavaScript message to display once an user submits a form, the message displays fine, but say the user goes to another screen and hits the browser back button, the same message displays again, is there a way to clear the message once displayed the first time.
View Replies !
View Related
Shopping Cart Navigation And Back Button Browser
I am building a shopping cart where the user adds items to his shopping cart and shippes some to himself and others to someone else as a gift. I do the following thing, First let the user fillout his info and I ask him to check which items does he want to send to himself. Once he hit submit button I do the following. 1) I process which poduct does he want to ship to himself. Then I remove those products from the shopping cart. 2) Then if he has items in his shopping cart remaining I display address form and checkboxes asking user to check all items that he want to ship to this address. then I repeat step 2 until the user has no more items in his shopping cart. when he has no items I will display billing page. Here is my problem if user hits back button in the browser and then enters submit button I have not items in the shoppingcart since I removed them from his shopping cart the first time he processed his form. So how do I deal with back button in the browser. I have no idea how to it when I have multiple forms.
View Replies !
View Related
Log Out - Page Expired Not Working Or Pressing Browser Back Button
I am a problem with I logout from my site. When I push log out link I send it to a new page with this script in this: <?php session_start(); session_unregister($SESSION); session_destroy(); unset($SESSION);?> In each page I have this other script #accesscontrol.php <? session_start(); if (session_is_registered("SESSION")!= FALSE ) # ya la sesion existe entonces la cargo { #Maybe I use after. } else {echo "<h1>Sorry...</h1>"; echo "<A href = "index.php"><H4> Login Univernet</H4> </A>"; session_destroy(); exit;}?> The problem is when I log out and press the back button I am back to the pages. Sometimes it tells me that page expired but if I reload the page everything is ok and all my "security" pages are available.
View Replies !
View Related
Pressing Browser Back Button - Form Filled Data Disappeared
When filling out a web form on a php page that is submitted to a search which lists the results based on the criteria provided (in the form), all works fine and as expected. However, when I press the back button to amend the form all of the search criteria data has gone and I have to fill it all out again if I want to do a similar search which is frustrating. (This does not actually happen in Firefox browser but most of my users will be using IE). How can I prevent this from happening? Previously I made a post about avoiding "Page has expired" and the conclusion I came to for that was not to use a "POST" which did the trick. But now I want to retain the data I input?
View Replies !
View Related
"Warning: Page Has Expired" - How To Aviod When Using Browser Back Button?
In summary: I want to a form to submit information via a HTTP POST, however, when using Internet Explorer I want to be able to use the back button and all the information retained. Presently we get a "Page has expired" message. How can we avoid this? Full details: Having searched for postings on how to avoid the "Page has Expired" they are numerous, however, I have not found one that answers the question adequately. Hence this posting. One posting directed me to the following webpage: http://in.php.net/session_cache_limiter but I played around with "session_cache_limiter()" and it did not give the desired results. (It seem to make no difference). Also many people say to use HTTP GET instead but this is not an option in this case. Where can I find concise definitive information on how to avoid "Warning: Page has Expired" and allow the user to press the back button and see the form as it was before they submitted it?
View Replies !
View Related
Cant Use The Back Button
I cant use the back button after entering a thread. Instead, nothing happens. I suspect its those damn popup ads in the right hand column that are preventing me from existing a thread. Can somebody take a look at this?
View Replies !
View Related
Back Button
I have a page in my site where a user give an exam, The problem is that If he wrong answer the q and then he know that the correct answer is C, So he go back and come again to that page and mark C as a correct answer. I dont want that from users. I want that if he or she click on the back button Then a message will comeout that save ur score. OR If he or she click the back button of the browser the page remain the same.
View Replies !
View Related
Back Button Problem
On my development site: http://beta.deluxeportal.com/index.php I'm having some strange problems with the back button... For example, if you try posting and leave out a message, you get an error. You can press back to return to the posting page. This is how it works on most pages, and this is what I want. However, on a very select number of pages (the login page, and the search page), if you get the error message and press back, you still get the screen with the error message. Then, the next time you press back, you are completely taken out of the page. I haven't been able to figure this out, as I can't see anything that makes those pages different from the others.
View Replies !
View Related
Disabling The Back Button
I have a form that is to be filled. The summit button call a php script that populates a database. Is there a way to make sure that if someone click on the back button on the browser they do not get a chance to send the same form again.
View Replies !
View Related
Back Button And Sessions
When I create a session-based site and hit the back button I get this error: Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the Refresh button. How do I avoid that, or at least create a back button on my page that works like the browser's back button does? Thanks!
View Replies !
View Related
Problem With Back Button
On submitting a form a php script is called to validate the form. I did the validation with javascript code integrated in the php script. I know its not the proper way to do the validation but... The problem is that if I dn't fill in the form..and click on the back button..the validation script is executed and i got an error message popup.I want the validation script to be executed only when I click on the submit button.Is this possible? But still I must use the form action so that I could retrieve the values in the validation script.
View Replies !
View Related
Back Button And Get Request...
I've made a script for managing shoppingcart (something like cart.php?action=add&item=12345) and it works fine, the problem is: when user hits the back button page after he added something in the cart, the add cart script is rerun and he ends up with having 2 of the same item. Is there a way to prevent script from running when accessed via back button?
View Replies !
View Related
Sessions And Back Button
I am developing a web site with a section only for registered users and using sessions to control the access to these pages. I have the problem with the "back" button of the browsers, especially in IE. When I go back within the controlled zone IE always display the message "page expired" and mozilla displaying the advise that you are trying to access to a post data page etc.. I am wondering if there is a way to avoid this "problem" a save the users to think what to do when they see these messages, letting them to go back and forth until they get out of the session.
View Replies !
View Related
Catching The 'Back' Button
I'm wondering if there's a way to catch when the user clicks the 'Back' button from a specific page. When this happens, I need to run a system call that deletes everything in a session-specific directory. The systems call would look something like this: system('rm -r /home/websites/genework/html/DATA/'.$Sess_ID.'/*'); So, the only thing left is the snag involving the catch of the 'Back' button. Javascript has a way to catch this action (window.onbeforeunload), but the tap-dancing that would be required to get PHP to activate the system call is extremely ugly and I'm not even sure it'd work.
View Replies !
View Related
Back Button Error
After submitting a form from a PHP script and using the back button I get a page cannot be displayed error. Everything works find except when the back button is used. Using IE with SP2 on Windows XP Pro any ideas?
View Replies !
View Related
Can Not Go Back On The Previous Button Using The ID's
Imagine a database with only two fields: ID + TEXT. Imagine a .php page to handle it. I have a next, previous and delete "buttons". The problem is when I delete a entry from .php page to database, I can not go back on the previous button using the ID's, because one will be missing, and no message will be displayed.
View Replies !
View Related
Browser's BACK Button
I actually want to deactivate the browser's "back button" action when a user has accidently forgot to logged out his session and opened another website in the same window without logging out his session. I have noticed such faults with rediffmail.com.Â
View Replies !
View Related
Execute With Back Button
I need that when the user goes back to the last page with the "Back" button of the browser, the page executes the php code again. Is there any code to insert in php that implies a reload every time the page appears in the user browser?
View Replies !
View Related
Prevent BACK BUTTON
say i have 5 items in a shopping cart and hit a button to delete them all. i will then be shown a shopping cart with 0 items(or any empty cart message). but if i hit the BACK BUTTON in my browser the shopping cart would still show 5 items in it. what strategy could be used to get around this? is there something that could force the page to refresh once it's loaded? or a way to make the page pull in the proper quantity whether it's being loaded or reached by the back button?
View Replies !
View Related
Back Button Dilemma
I am creating a file sharing web application. When a user edits an existing file -- by clicking the edit link for the file on the "directory view" page (which displays a list of all files in that "directory) -- the file's checkout value is changed from Ɔ' to Ƈ' to indicate that it has been checked out. This means that other users that visit the "directory view" page will not be given the option to edit that file. Code:
View Replies !
View Related
Page If Back Button
I have a php page which is a sign up page, once signup is finished the user is redirected to a new page. Sometimes (and it's rare) the user hit's the back button and then re-submits the form etc. I mean like I said it's rare but still bothers me, so on the last page I kill all the sessions. Which only works if the user hits the back button but the page is refreshed. So basically I want to know if it's possible that when the back button is hit to refresh a php page?
View Replies !
View Related
Back Button Resubmitting Sql
I click the back button, it looks like my mysql queries are running again. It's like the previous page isn't cached and it's rerunning all the queries. Is this a setting I need to set in mysql, php or apache? For instance if a page has a "select * FROM table ORDER BY RAND() LIMIT 5" and I go to the next page. When I click back a new set of 5 will show up. I want it to be the same page that was created before.
View Replies !
View Related
Back Button POST Issue
Is there any way of disabling the repost of information when a user hits the back button? Is the only way to do this to actually use some sort of redirect on the page receiving the initial post (though this won't stop them hitting back twice and possibly reposting will it?)
View Replies !
View Related
Back Button Gives An Expired Warning
When I click the back button on a page generated by php, to go back to a listing page generated by php, I get this: Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the Refresh button.
View Replies !
View Related
Detecting/Disabling Back Button Using PHP
I was wondering if there is a way to disable or detect when a user presses the browser back button in PHP. What I want to do is that when a back button is pressed, the page reloads. Please let me know if there is a way to do this. If any of you use modernbill, it has that feature.
View Replies !
View Related
On Back Button, Blank Form
You know when you fill out a form and then click next only to see an error message that says - you didnt fill out the form correctly please go back and try again. So you go back but all the data you filled in has disappered - how annoying! How can you get around this? i.e. how can i make sure that when the user goes back all the stuff they filled out is still there? Or is this not possilbe if your form is embedded in a PHP file?
View Replies !
View Related
File Upload And Back Button
what I really need to do is make a page that allows a person upload up to 9 pictures without breaking the back button. How on Earth do I achieve this? Every time I've ever written something to achieve a file upload it's always broken the back button, in that if you click back you always get that annoying box asking you if you want to send the POST data. I've tried hidden frames and that had the same problem, and I **COULD** have it upload in a new window but I'd like to avoid that as most people have popup blockers.
View Replies !
View Related
Button Back And Session Expired
I've all my site in PHP with POST method, for avoiding most user see what's appening in the variables I pass trough the pages. (as some info shouldn't be visible for most users). What appens when I push the "return" button is an error message telling the "page has expired". I know this is a problem with the POST method, as I've seen thousand thread about this, but I can't change my code. So it's there any way to let this message disappear, maybe working with the header of the pages.
View Replies !
View Related
Register Globals & Back Button
When use the back button back to a post form submit page, there will be the warning like this. Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the Refresh button. In some of my old web site, when use the back button, I didn't see the warning message like the above. And I am sure the method was "post" too. And the page expires features was set up no difference.
View Replies !
View Related
Preventing Back Button Press
I am making a form which has name and code (captcha image) as fields to be entered. I have given a timeout of x so if the form is submitted after x secs then it will print timeout and also used a token verification. If the user submits a data then processing is fine. But when he presses the back button of browser and submit again then the captcha image remains same. [but changes when the form is refreshed] So the user in this case submits the form presses back and then submits the form and floods my database with same data again and again.
View Replies !
View Related
Survey Form Back Button
I got a survey form that contain 3 pages, and i will provide a "Back Button" for the user to move back and forth. So, any suggestion on how can i display all the inputted things by users when they move back and forth ?
View Replies !
View Related
Browser Back After POST
I got an annoying problem using the POST-method to send a form's data: I put a login-form on the page which is sent by the POST-method to itself. After that the content of the POST-variables will be checked (!empty($_SESSION['xyz'])) and the rest of the page included. In order to show some informations (e.g. "Welcome John Doe") and becoming independent of specific POSTs, the data is also written to SESSION-variables. Now if I go to another page (by link) and after that back to the login-page by the browser's "back"-button, it cannot be displayed ("The page cannot be displayed..."). Only if I actualize the page it is displayed regularly. I know that this problem doesn't appear by using the GET-method, but because of security reasons I have to use POST. So what can I do to fix that problem? I don't want to disable the browsers back-button (or use some JavaScript).
View Replies !
View Related
$HTTP_REFERER On Browser Back
I'm using HTTP_REFERER to see what pages are being looked at before a member of my site comes to my HOME page. HTTP_REFERER works perfectly if the previous pages viewed are linked to the HOME page and they use the link to get to it. However, if they type in the address of the HOME page into the browser or scroll backwards or forwards to the HOME page the HTTP_REFERER does not work. Any ideas on what I am doing wrong or what I can do?
View Replies !
View Related
Stop Browser Back
I am creating a user rating system and have done it all apart from one thing that is baffling me. Once the user has submitted the form how do I stop them from just hitting back and submitting it again? I have got a cookie system that stops them from re entering it going forward but this does not stop them just hitting the back button and voting again.
View Replies !
View Related
Back Button, Page Expired, GET And POST
I have read you can solve the back button problem with the page expiration by using GET method instead of POST. When I use the GET method with form data, it doesn't work. I have a page with a dropdown submitting to a page getting the variable via POST. Then it links to another page, and I want them to be able to come back to the second page. When I use GET instead of POST I get an error.
View Replies !
View Related
Refresh Page After Hitting Back Button
I have a page with Dropdowns that are linked to a database. After selecting one of the options and going to the next page, it will display the results of that dropdown item as pulled from the database. If a user hits the back button, then selects a different option and hits "submit", what is listed is the results of the first selection AND the results of the second selection. Is there a way to either: 1. Refresh the page upon hitting the back button on the browser 2. upon hitting the back button, the browser forgets the selection previouslly made.
View Replies !
View Related
Browser's Back Button Whipes Out Data
I am building forms that as the user to 'hit there browser's back button' to correct or complete their information. Sometime (on a pc and mac) with the latest version of IE ... You hit the back button and the data is gone. Is their a proper fix for this?
View Replies !
View Related
Breaking The BACK Button (Refresh Problem)
I have a php page which serves up multiple pages based on how the user interacts with it - there are links on the first page that will reload (from the same php file) a new page with form fields and submit buttons, and when a user posts from that new page (or cancels), then the same php file is again loaded, detecting how the user responded and generating the appropriate html for whatever should be none next. All very typical. What I want to know is, is there a way so that once a user has posted from some submit button from one page (we'll say he Cancel's from a page that had a form Cancel button so he returns to the original non-form default page generated from the php file), can it be made so if the user then "refreshes" the new page (hits the Refresh or Reload browser button) he does NOT get the browser's "The page cannot be refreshed without resending the information. Click Retry to send the information again, or click Cancel to return to the page that you were trying to view." dialog? In other words, what I'd like is a way to have the browser think that there was no posting done (even though there was) once I've generated this certain 'home' page with my php code, so that user ReLoad's of the page won't get this warning. This is probably related also to problems I've had with "breaking the BACK button" on sequences of php pages: if the user BACK's up to a page that was generated by a post, it may not even be possible to regenerate the original page.
View Replies !
View Related
Hitting The Back Button Displays Last Search
I have a website where people can perform searches. Once they find what they're looking for they can click the link and get more details on an item. The problem I'm having is that people read the details and then hit the back button. Here they get a message warning them how the browser needs to resubmit the data that was entered in the search form or they're sent back to the search page. How can I cache the search terms or search results so if the person hits the back button they get the results of the previous search and not a message or are not sent back to the search page?
View Replies !
View Related
Form / Results / Navigator's Back Button
I have a research form script, a result list script and an item page. Just classic! form page => result list page => item page When I'm at the item page and I click on the Navigator's back button I have the following message: Avertissement : expiration du délai pour cette page La page requise a été créée en utilisant les informations fournies dans un formulaire. Cette page n'est plus disponible. Par sécurité, Internet Explorer ne renvoie pas automatiquement les informations vous concernant. Pour envoyer vos informations à nouveau et afficher cette page Web, cliquez sur le bouton Actualiser . The normal use in fact . Is there any way to get to the list again?
View Replies !
View Related
|