By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,722 Members | 1,874 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,722 IT Pros & Developers. It's quick & easy.

page can't be display error

P: 45
hi,

i use session for every page.in each page i submit the form and get value.if i press back button in IE previous page can't be display.without submit a form it will display the previous page.....
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. session_start();
  3. if(isset($_SESSION["user"]))
  4. {
  5. print"<table width=\"950\"><tr class=\"title\"><td>";
  6. echo "User Name-".$_SESSION["user"];
  7. print"</td><td align=\"right\" valign=\"top\"> <a href=\"logout.php\" style=text-decoration:none;>Logout</a></td></tr></table>";
  8. }
  9. ?>
  10.  
Feb 29 '08 #1
Share this Question
Share on Google+
6 Replies


Markus
Expert 5K+
P: 6,050
And what is your question?
Feb 29 '08 #2

P: 45
And what is your question?
if i press back button go to previous page....
Feb 29 '08 #3

Markus
Expert 5K+
P: 6,050
if i press back button go to previous page....
That's only half a question..
Feb 29 '08 #4

P: 45
That's only half a question..
if i press back button i want to go previous page.but i have problem to display the previous page.
Feb 29 '08 #5

nathj
Expert 100+
P: 938
if i press back button i want to go previous page.but i have problem to display the previous page.
Not sure I understand teh question yet either, but here's a guess.

When you go back a page are you getting a message box about Posting information to the page? This is guess based on the fact that you daid every page submits a form.

Perhaps you could answer these questions:
1. What are trying to achieve?
2. What is happening that should not happen?
3. What is not happening that should happen?

Remeber it may be helpful for you to post the code involved - and use code tags!

Cheers
nathj
Feb 29 '08 #6

Markus
Expert 5K+
P: 6,050
If you are trying to return to a page where you have POST submits, you will be prompted, in most modern browsers, asking whether to resubmit the info.

This cannot be bypassed as it is from the browser and not the server.

You had better get building a browser if you want to do this ;)
Feb 29 '08 #7

Post your reply

Sign in to post your reply or Sign up for a free account.