Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Page Expired After Going Back From Del. Pageto Form Page Where Comment Is Submitted..


i've made a submit comment form with php and mysql, the form has an action to itself with a hidden var like this: input type=hidden action=add

When i delete a comment on the page i go to a page called delete.php3 and there is a link with a javaline which goes -1 back in my history..

When ive added a comment, the comments page contains action=add and when i delete a comment, i want to click on the link to go back to the comment page, but then, it doesnt work and it says:

Page has expired.

I wondered how to deal with this kind of problems........




View Complete Forum Thread with Replies

Related Forum Messages:
Page Has Expired Message In Between The Php Page When I Click Back In Explorer Menu
I have a php script page, which is basically quiz. Visitors (after login in
with their email address) are supposed to answer each question, and when
they click the button at the bottom, the next page will show which problems
they got right or wrong.

Now my visitors, after seeing some problems they got wrong, click Back
button at the Explorer menu, and if they do, they get the below message:
=========================
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.
========================
Below are the script that I am using. This scripts are after initial login
page, which asks for visitor's email address. I have authorized visitors
already in my MySQL table, and only the visitors whose email address is in
my MySQL table are allowed to login......

View Replies !
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 !
Page Has Expired, BACK-button -problem
I have Windows XP&IE6.0.2... (SP1).

I'm coding one project with PHP.
I get "Warning: Page has Expired" when I try to get back to the "POSTed
page" (page whither moved from FORM-page).

Better explanation:
- Pages are:
* Page A: Front-page
* Page B: Page where is www-FORM

#1.) From Page "A" I move to the page "B" by clicking link on page "A" and I
fill the form's fields
#2.) Then I click SUBMIT-button and I moved back to the page "A"
#3.) I move to the page "B" by clicking link on page "A"
#4.) I click "BACK"-button from browser
#5.) I got "Warning: Page has Expired"

I want that when I click BACK, I will be moved to the page "A" straightly
without warning
(of course then post-data can't get re-sent)

Got any idea how in PHP I can prevent this warning?

View Replies !
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 !
IF Else Statement - Form Being Submitted From Another Page And Being Directed To A Second Page
I have a form being submitted from another page and being directed to a second page. In this form is a checkbox called nonprofit. When checked the value is 1.

On the second page I have the following code:

View Replies !
"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 !
Go Back Without "page Has Expired" Warning
I have three pages: 1 2 3. Page 1 "posts" information to page 2, and page 2 uses "href=somePage.php?..." to send information to page 3. I would like to allow the user to be able to hit the back button to go  back to page 2 without getting the "page has expired" warning. I also want to stay away from "get" on page 1 if possible, and no javascript.

View Replies !
Setup My Form To Link To A Page After It's Submitted
I want to setup my form to link to a page after it's submitted. Right now it simply prints out "Thanks for contacting us. Someone will get back to you shortly. Instead, I want it to go to a new page of my choice. How do I do this? I figure its just a command I am unfamiliar with. not entered an email, please go back and try again";}

else {
$send = mail($to, $subject, $body, $headers);
if($send)
{print "Thanks for contacting us. Someone will get back to you shortly.";}
else
{print "We encountered an error sending your mail."; }
}

View Replies !
What Makes A Site Go To The Page Where A Form Is Being Submitted?
When a form is submitted what is it that makes the user visit the page the form is submitted to?

I have a form that doesn't do this when I want it to, because of this currently the form only works when its on the page its submitted to. Code:

View Replies !
Form Get Submitted As Soon As The Page Loads Automatically
I need a form get submitted as soon as the page loads automatically , I know abt its javascript code, But I need it to be done by php.

the form has no input, it gets its variables from db, just a submit button, has to be clicked.

View Replies !
Refresh Problem - Warning: Page Has Expired The Page You Requested Was Created Using Information
i got two php page at the movement, which they called edit2.php and edit3.php. when i submit a form from edit2.php to edit3.php, then i could not come back from edit3.php to edit2.php.

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. Code:

View Replies !
Redirect The User Back To The Page The Submited The Form From.
I have an email form on a site that I am working on. It sends from a small JS popup that is activated by clicking on a link. that form sends to a php page which sends the user entered variables to an email address. what I am looking to do is instead of going to a new page when the form is sent I want to redirect the user back to the page the submited the form from. I have it set up to send a hidden var to the php page with the full url of the origional form. here is the functional code I have on the php page. what is hapening is the email is being sent but the php page is being displayed instead of redirecting. Code:

View Replies !
Is There A Form I Can Refresh The Previous Page When The Browser Back Button Is Hit?
I have a small online contest on my page, forms work great, but I realized people hit the back button and send me the form again and again without type anything. 

My question is:  Is there a form I can refresh the previous page when the browser back button is hit?  I think I can achieve this using cooking, correct me if I'm wrong.

View Replies !
The Page Has Expired
I have a form based shopping cart, and when you try to move back an error is returned...

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. When I refresh the webpage the form is blank, From what I gathered from this forum, I should switch from post to get, which I tried but also didn't work. I need my customers to be able to go back and forth if then need to.

I did not design the cart, and the program says my request can't be done, but I shop a lot on line and have always be able to back up and go forward without loosing the information I entered. My darn cart erases everything and I know darn well I am going to lose a lot a business as a result of frustrated shoppers.

View Replies !
Page Has Expired
I have a support section of my site for admin and there is a login with a user name and password. once logged in I have sess vars storing the user's info. The problem I am having is in IE if the Admin is logged in and on a page and hits back to make a change he/she is greeted by a page that says Warning: Page has expired.

View Replies !
Page Expired
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. Is there any way to fix that problem on one of my sites get that error when i use the back button?

View Replies !
Web Page Expired
Hitting the back button to a page that submitted and you get "web page expired"
Is there any way around that? Maybe with PHP headers?

View Replies !
My Page Always Expired ?
I'm writing a website in PHP at home, no internet connection.Im using a single software that give me Apache server, PHP..I have a small forum,after user added a topic, I redirect him to homepage, then if he click back button in IE ,

IE will say that the page he requesting is expired ?:confused: It says that my page was created by infomation submitted in a form, to see that page it has to resubmit that information ?

I have tried with this forum, I answear in quick reply to a topic, it showed me my reply, then I go to another page on the menu, then I click back, the page is not expired ?I got the page before I posted my reply.

View Replies !
Warning: Page Is Expired
Can anybody tell me how to go on back page when using PHP Session. It give me Warning: Page is expired.

View Replies !
Page Has Expired Warning
I have seen several posts on this subject on the net, but no clear solution. I have a php page that presents a summary of 'objects', after which the user selects an object to see the 'detail' page of an object.  On this detail page there is a 'back to previous' hyperlink, which simply goes back 1 page in the history.

However, in this case, it always comes up with the Warning: page has expired first.
Since what I am trying to do is very standard and normal in PHP - is there anyway at all (without resorting to GET) to prevent this annoying behaviour?

View Replies !
Warning: Page Has Expired
Using PHP sessions on each page. At top of php pages have:

session_start();

Sessions work fine only when hit back browser button in IE get this warning:

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 !
Page Has Expired Error
At the minute when you search my site it will produce a result, but if you click back, it says page has expired.

View Replies !
Log In Page That Goes Back To REFERRING Page
I am using the following code to initialise a session, depending on
whether-or-not the users' log in attempt has been successful.

if ($session_ok == "TRUE") {
//open the session
session_start();
//assign user details to session
$_SESSION[txt_user] = $user_id;
$_SESSION[user_pass] = $user_pass;
$_SESSION[ses_state] = "TRUE";
header("Location: ../index.php");
}

as you can see the script then refers back to my index.php page, after the
session is ok'd.

What I would like to do is change this so that is goes back to the referring
page, instead of the index.php page, which requires the user to then
navigate to their previous page again.

I have attempted to use $HTTP_REFERER, although for me (on IE6) for some
reason their is no value in the variable!

View Replies !
I Want The Page To Go Back To My Login Page.
I want to logoff my application and I have set up a link to do this. I
got it to destroy my session, but I can't get the page to go to the top
of the browser and do a page refresh. Here is the code I am using.

First there is the link I am using.

printf("<a href="%s?logoff=%s">%s</a><br>", $_SERVER['PHP_SELF'],"logoff", "LOGOFF");

Here is piece I use right at the top of the script to destroy the
session and try to refresh the page.

if (isset($_REQUEST['logoff'])){
session_destroy();
$_SERVER['PHP_SELF'];
}

What do I have to do to get the refresh to work?

View Replies !
How Can I Avoid A Page Expired Error?
The user searches and see the results, then clicks for more detail in a
result. He then clicks the BACK button in the browser to see the results
again and....gets a page expired error.

View Replies !
Disable Backbutton - When Page Has Expired...
I have this on the page:
<?php
header("Pragma: no-cache");
header("Expires: -1");
?>

but I want it so, that when the user goes back, (s)he might not be
allowed too - say the session has expired.

How can i achive that?


View Replies !
The Session_cache_limiter Function Page Has Expired
I have various forms which are submitted using POST - which I do on forms which will result in a database update. The problem is that when people use the back button to get back to a page which resulted from a POSTed form they get the above standard IE warning message.

I've played around with the session_cache_limiter function but don't seem to get what I want. I don't want the browser to cache results. i.e. if the update being made is to delete an item from a list, then I don't want them to press the back button only to see the item is still there from the cache.

View Replies !
Page Expired, Please Refreh Note
when use back button, sometimes we get the "page expired, please refresh" note. Is there a way to avoid this note? Add a refresh javascript to this page to make it refresh every time will avoid this note, right? But it creates unnecessary refresh in the case we didn't back button to this page, it still refresh.

View Replies !
Multi Page Comment System
I would like to have a Multi Page Comment Box.. so i people can comment on different images on different page.. But it also has to be able to make them log in befor commenting.. Anyone know of a good script or has a tutorial.

View Replies !
Session Expired -> Redirect User To Another Page.
I am using the new session management function from PHP4. session_start()
how do u redirect a user to another page if his session is expired? here is what i want to do:

1. user Tom enter his correct username and password.
2. my system use session_register() function register a variable in his cookie.
3. user Tom clicked Logout
4. my system use session_destory() function and redirect Tom to the login page.
5. Now, Tom click the 'BACK' button of his browser, a page showed 'page expired, hit reload button ... ...'.

here is my question, how do I redirect Tom to the login page if he clicked the BACK button?

View Replies !
If Session Expired Redirect Them To Login Page
when ever a user login, his information(name,login-time..etc) will be stored in sessions and also stored in users table. the table has following fields Code:

View Replies !
Image Upload File Limit - Page Expired
just a slight problem with my upload. If the file size is above 50k i display an error message but when i go back with the browser the page is expired how can i work around this please. code is as follows:-

<?php

if(!is_dir($store_dir) )
{
echo("Specified directory is not valid... Exiting");
@unlink($HTTP_POST_FILES['upfile']['tmp_name']);
exit();
}
if( copy($HTTP_POST_FILES['upfile']['tmp_name'],$store_dir.$test3) )
{
echo("");
}
else

View Replies !
Checking To See If Page Was Submitted
Simple question but it doesn't seem to be working with a form i'm creating. does this mean if in the GET vars there's a 'not-empty' variable called "submit", then do something?:

View Replies !
How Should I Stop The Page From Getting Submitted Again While Refreshing It?
i have html and php contents in a page .when i click the submit button values are sent to the database. and when i refresh the page again another set of the latest values are getting inserted to the table.(ie page is getting submitted again while refreshing). how should i stop the page from getting submitted again while refreshing it?

View Replies !
Str_replace - Add Some Content On The Page To Show What You Have Submitted?
I had this wacky idea to have a pull down that keeps the same values when previewing what they have select in the post (ie. Webmaster World's 'Preview' Button When you post It has the same value of what u put in it when you add some content on the page to show what you have submitted) My Code:

$genre_pulldown = "<select name="genre" id="genre"><optgroup label="Genre"><option value="Yo Mama">Yo Mama</option><option value="Blonde">Blonde</option><option value="Political">Political</option><option value="Religious">Religious</option><option value="knock Knock Jokes">knock Knock Jokes</option></optgroup></select>";
if(!isset($_POST['genre'])){
echo $genre_pulldown;
}
else{
$genre_pulldown = str_replace('{$_POST['genre']}"', '{$_POST['genre']}" selected', '{$genre_pulldown}');//LINE 81
}

View Replies !
Index.htm Going To Login Page And Sending Back To Index Page
1: A visitors visits a.html page. decides to login and post comment. goes to login page and logs in then I want to send him back to a.html page how do I do that? Here is my login page and login.php page.

2: Same as above but I want to send them back after some time... while I make them view the error, why they have not been able to login. Code:

View Replies !
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 !
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 !
Session Var Is Setting ONLY AFTER I Reload Page, Form Var Displays First Page Load
Page1 has a form that calls Page2. The beginning of Page2:
<? php session_start();
$s=$_POST['sSelected'];
session_register("s"); ?>

in the middle of Page2 I have a form varaible:
<?php echo $_POST['stateSelected']; ?>
<?php echo $_SESSION['s']; ?>

The form var displays the first time the page loads. The session var
displays only after reloading the page2.

View Replies !
Build A Page That Takes Form Data, Processes It In A Second Page
I'm trying to build a page that takes form data, processes it in a second page, then sends the user to a third,depending on data processing.

On the second page, I am trying to get the page to have some sort of "Loading" message while the backend processes the data, but I can't seem to get anything to work. Does anyone know how I can get that Loading message to display?

View Replies !
'Back' Page After Logout
I'm using HTTP authentication as my login mechanism, and I'm having problems with the logout. It appears to work (as in I get the right message when I've logged out) but pressing the 'Back' button gives me the information on the previous page as though I hadn't logged out at all.

1) Does $PHP_AUTH_USER not get cleared when a "401 Unauthorized" is encountered?

2) Is there any way to force the logout to apply to previous pages (I'm thinking using sessions or cookies perhaps), or do I have to get the user to close the browser window?

View Replies !
Back To Html Page From Php
How do you go back to the html page you came in from from inside a php
script?

View Replies !
Back To Previous Page?
is it a way that we can have "go back" to our previous page? cos normally when we use back command in our IE or NS. we should have this error message appeared Warning: Page has Expired blah blah blah..

so how should I program so that i can "go back" e.g: i got two php, fromhere.php and cominghere.php is there anyway that i can do in order to reach the page "fromhere.php"?

View Replies !
Going Back To A POSTED Page
how can i stop the browser from warning the user that "Post Data" will be resubmitted... For example, on goolge you do a search, then click on a link, then clikc the BACK button in your browser, it dosn't give you the warning that you are going back to a page with posted variables?

View Replies !
Posting Back To The Same Page
I have a website that uses user authentication. The login does a post back to itself to check set usernames and passwords.

<?php echo $_SERVER['PHP_SELF']?>
sample url:  .../admin/login/index.php

This is working on a linux box where the end of the php code sends the page off to a ccc.php page for access checking. So after logging in on the index.php page, you eventually get returned to admin/ccc.php.

I reused the same code on a windows box and the .../admin/login/index.php takes me to .../admin/login/index.php/admin/login/index.php

does anyone have a clue as to what might cause this?

View Replies !
Does 'Back' Reload The Page?
I notice that when I click the 'Back' button my previous script runs, i.e, all the php code runs (I previously thought that maybe the previous form displays without the code re-running).
However, I do not get the expected value displayed on my form.

After populating one element in formA with &#3917;' (just any number) and submitting to formB (using POST ---> Redirect --> GET to avoid the 'expired from cache' message) I then click the 'Back' button and the 17 does not appear. In the code below, after clickng 'Back', I see as output from the echo statement that rb_value[0] is, infact, &#3917;' but within the form, the text element named rb_value[0] displays as empty.

Does anyone have suggestions why this might be?

It might have to do with that I do not understand what the 'back' button does. Or maybe with my PRG (post - redirect - get) model.

Here is part of the code:
echo "rb_value[0]=".$rb_value[0]; //After clicking 'Back' I see that rb_value[0] is 17

if (isset($rb_value[0])) {
$rb_val = $rb_value[0];
} else {
$rb_val = 1;
}

$line.= "<td width="20%" valign="center" align="left"> ";

// This element displays as empty instead of the expected 17
$line.= "<input type=text name="rb_value[0]" value="$rb_val" size="25" maxlength=25 </center> "
$line.= "</td> ";


View Replies !
Go Back To The Previous Page
is there any simple way of knowing which page within the site the user came from? Since after the user do something such as logging in and i want to be able to redirect the user back to the page from which he/she came from.

View Replies !
Redirection Back To The Page Before You Log In When You Log In.
how to do redirection back to the page before you log in when you log in.

View Replies !
Back To Last Page Viewed
i was wondering if php is capable of doing the following and if so was hoping i could get some help doing it. i have a wordpress blog and change the content of the sidebar depending if the page being viewed is part of the blog (home, archive, search, or single post) or an actual seperate page (like the about, disclaimer etc).

what i'd like is to have a link on the sidebar when viewing a page that says "back to blog" thats acts as a back button like in a browser, going back to the last page viewed. except what i want is for it to go back to any page that isnt a page, so basically the last blog page. um, does that make sense?

View Replies !
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 !
Page Back Into Index's Iframe
On my index, I have a menu on the left with the rest of the page an iframe.How would I reinsert any pages found on the internet back into the index's iframe using php?

View Replies !
Ob_start() And Going Back To The Previous Page
1. How do I go back to the previous page using PHP?

For example, I have a log-in process which validates username and password of members, and also retricts access to certain pages. So if a member goes into a page without logging in, the member will be presented with a form to log in. How can I make my script go back to the previous page they were trying to access prior to logging in?

2. What would happen if I use ob_start and ob_end_flush() on every page that I have? Would it affect loading time? Or would loading time be the same except that it would cache everything first? Isn't that suppose to make it appear that the page loads fast?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved