Refresh The Previous Page
This is a project that I am attempting in which a user is allowed to submit a programming code which the server will run.
The user submits the files from the client side. the user details will be written to a mysql database and the code is run. at the end of code run, the result will be posted back to the client which will then show a table of submissions made. Thus I reckon I need to perform a refresh on the client side but how do you go about doing this in php.
View Complete Forum Thread with Replies
Related Forum Messages:
Refresh Page - Or An Absolute Refresh Not Reload.
If the image content for image1.jpg changes, but the file name image1.jpg does not, IE6 does not show the new content unless F5 is pressed. If I reload the page using http://domain.com/view_pictures.php the image does not change. If I use a header("LOCATION: http://domain.com/view_pictures.php"), the image does not change. I have tried several ideas to force the reloading of the image file with no little success. I cannot change the image file name. Even if I add another a second image, the first image does not change. IE must use the file name to determine if it should reload the file. But F5 works. Is there a means in either php or JavaScript to call (force) a F5-keyboard command? or an absolute refresh not reload.
View Replies !
Page Control - Next/previous Or Select Page Number
I'm looking for php script examples that will help me control page layout. Using a table with 12,000 records, would like to be able to display only 5 records per page with page controls at the bottom of the page. The bottom edge would have next/previous or an optional insert desired page number.
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 !
Login Page - Previous Page
I have a login page, and instead of going to the index.php page all the time after a successful login, I want the user to be directed to the last page they where at, as long as it is a page on the website.
View Replies !
Next Previous Page
I have searched google and couldnt find an easy way to modify my code to accomodate for this. <? //the host, name, and password for your mysql mysql_connect("localhost","user","pass"); //select the database mysql_select_db("epidemic_guestbook"); if($submit) { //use the PHP date function for the time $offset = 3600*10; $time = gmdate("dS F Y, G:i", time() + $offset); // inserting it into the shoutbox table which we made in the mysql statements before $result=MYSQL_QUERY("INSERT INTO shoutbox (id,name,message,time)". "VALUES ('NULL','$name', '$message','$time')");......
View Replies !
Launch New Page And Refresh Exisiting Page
I know about not being able to change header info after output to the browser but what are the workarounds if any? I have a basic form where a user logs in - the details they submit are verified in supportlogin.php and then if successful I launch another browser window with Javascript but the window in that they logged in at remains on supportlogin.php and is blank... How can I launch the new window and send the first window back to the login page? PHP Code:
View Replies !
Refresh Page With New Contents Without Leaving The Page?
Basicly what i want to do is: i have a bunch of links. when i click that links the dynamic content from a mysql db appear above the links. I need to do this without open a new page because i'm using mootools with the acoordeon script, and inside each "tab" theres contents. when i'm inside one tab i want to have links, and clicking each link new contents appears. When i do this opening a new page is easy, i just put on the links something like newpage.php?id=games and then the page newpage.php open and the recordeset from games is echoed. but how to do that without leaving the page? refreshing or something like that.
View Replies !
Cookie - Page Load Or Page Refresh
this is supposed to show file1.txt, then file2.txt and so on on page load or page refresh. But it only shows the first 2 txt files. Can someone help me find out why? I would think that as long as the cookie is still the same if (isset($_COOKIE['e'])) { setcookie("e", $a++, time()+60*60*24*30);} that it would go to the next text file but its not. Please let me know, thank you very much. <?php $max_files = 12; $a = 0; if($a == 0) {setcookie("e", $a, time()+60*60*24*30);} /* expire 30 days*/ if (isset($_COOKIE['e'])) { setcookie("e", $a++, time()+60*60*24*30);} if ($a == $max_files) $a; $include_file = "file" . $a . ".txt"; include ($include_file); ?>
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 !
Cache The Previous Page?
I have a routine that displays 60 items (with thumbnails) per page. You can click any item and displays a new page with item details. When the user back pages it runs the query again to display all the items. Is there a way to cache that page and images so that second query doesn't execute? I do offer a pop-up window using Java but is not the default and not used by many. I'd really like to get rid of that second query. ;)
View Replies !
Set A Variable From The Previous Page
how am i surpose to set a variable from the previous page check if its same as before if it is then leave the session variable at same value if not change it to $_post['text'] which is the new value to use . Code:
View Replies !
Find Previous Page
I am trying to make a system where other web sites can link to my home page, and my home page can redirect them based on the site they came from. However I really don't want to have to use get values in the url. In short I need to know if there is a variable or function which allows me to find the web page that the user has just come from, and if there is, what it is.
View Replies !
Check What Previous Page Was?
I would use this code to check what the current page is. $realname = basename($_SERVER[SCRIPT_FILENAME], ".php"); if ($realname == 'index.php?cmd=index') { do stuff } But, instead of the current page, any ideas how I would use that (it can be different if neccessary) to check if the PREVIOUS page was index.php?cmd=index'?
View Replies !
Redirection To Previous Page
I'm trying to make a script that would upon execution would redirect current page to previous page. I'm integrating a user comment system for my website and when I do no specify "After inserting, go to page" it reloads current page but user comment is not visible, so I decided after adding a comment to send user to say redirect.php page, what would instantly send user back to submition page to see it's comment. I cannot seem to find a suitable script to do this. Or maybe there is some other way to reload current page and for the comment to appear just after submition? Because I do not want people to reload page manualy to see their comments, in which case it would sumbit the comment twice.
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 !
Previous Page Url As A Variable
Is it possible for php to set a variable to have the same value as the url of the previous page? I want to do this without having to post the information, use sessions or cookies. Can this be done?
View Replies !
Read Previous Page Url
I have a query regarding browser url.Let me narrate the exact scenario which i need. I would like to expire my session when a person enters different url in the navigator bar other than my url and comes back to my url. For example if i visit example.com and then i type gmail in the same navigator bar and then move back to my url example.com through browserback button then i have to end the session of my client i mean he has no more access to my site. The same scenario is there for icicibank.com. I wanna the code using php and javascript.
View Replies !
After Login, Go To Previous Page
I'm currenting doing a rating program. Anyone can access the profile of any member, but if you want to rate someone, you must login. Say you are at the member page, you want to rate the person. You select the rating from a drop down menu and hit submit. The next page first checks to see if you are a member, if you are not, it forces you to login. Code:
View Replies !
Expire The Previous Page
I have a webform that submits information to mysql and once complete goes to a page that says the information has been submitted. If you click the back button you can submit this information again to mysql. Just wondered if there some code in php I can use to stop this.
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 !
Redirect Users To The Previous Page
I have a client who asked for a page where people order products for his site. This is then sent to the shopping cart. I am currently displaying an error message, but my client does not want this. Is there a simple way with PHP to redirect users to the previous page, or should I code the custom error handling by hand.
View Replies !
Writing Pdf Docs And Going Back To The Previous Page
im trying to write a pdf document which contains two columns of data. when the column on the left crosses over to the next page i need to be able to go back afterwards to the previous page to write the content for the right column. currently im trying to do this with fpdf but it doesnt seem to allow me to go back to the previous page once i have finished writing content for one column that crosses over.
View Replies !
Send File & Return To Previous Page
The following script sends a file to a given email along with a message. I am posting the file to the script as a query string, eg. I link to script like this: <a href="php/sendfile.php?remote=sendfile/abc.pdf">receive pdf</a> My question: How can I return to the original page (the page which links to the script) instead of returning to the script after the file has been sent successfully? Could header( "Location: be used in combination with javascript:history.go(-1) ? If so where would it be placed in the script? Code:
View Replies !
Can't Access Form Field From Previous Page
I've built a multipage form using QuickForm_Controller. It has 5 pages, plus a final confirmation page, not too dissimilar to a shopping cart's checkout functionality. If I'm on page3 and want to reference a particular field on that page in javascript I use: PHP Code:
View Replies !
Determining Which Elements Were Checked On A Previous Page....
I have a database editing page, where I can add movie details and such. each movie can have multiple genres, so I store these in a separate table. sofar so good. I have made on the editing page checkboxes next to the genres currenctly associated with the movie, if I check those, it indicates I want to delete them. now, the problem is, I can easily determine how many checkboxes were checked ,with count(), but I dont know a way to determine which were checked. This is a problem, because I cannot verify this way what to delete, as the $_POST['genre'] array will vary in lenght from the checkboxes array, say $_POST['del_genre']. Code:
View Replies !
Back Button To Previous Multi Purpose Page
the index page passes paramiters tot he view page to telling it what to view. then the user can go to the delete page to delete on of the items viewed. from the delete page I want to the user to go back to the viewpage using the same paremiters. Is there a simple way to just do a back link or do i need to pass the paremiters to the delete page then back again?
View Replies !
Php Page Refresh
I have a Problem with Page refreshing in PHP, I tried all the available solutions from Forums but nothing helped me to solve the Problem, Here is My Requirement 1. I have a php page with list of Products say products.php 2. I went to newproduct.php from products page to add new product 3. Once the new product is added it comes to products.php in which it should show the products list with newly added product but it's not. 4. when i clicked on Refresh it is showing all the products including newly added product. 5. I added header with no-cache, must revalidate at the begining of each php page.
View Replies !
Page Refresh
Now I have a drop down box, I select a user, hit approve and it updates their status in the database and SHOULD remove their name from the drop down box. If I refresh the page a 2nd time after I click on the submit button, or if I approve another user, it will remove their name. But it always takes 2 page refreshes to remove their name. How can I make it so after I hit the approve button, their name is removed from the drop down list?
View Replies !
Page Won't Refresh
I'm trying to use. Code: header('location: ' . $_SERVER['PHP_SELF']); ...to refresh the page after deleting/editing an entry in the dbase but I always get this error : Code: Warning: Cannot modify header information - headers already sent by (output started at c:program fileseasyphp1-8wwwlinks-worklang-control.php:16) in c:program fileseasyphp1-8wwwlinks-worklang-control.php on line 57
View Replies !
Refresh Page
I display all the contact info in list from data base I have some more user functon in same row like edit,delete,details. Now when I delete some contact from list then deleted from data base but show in the list for first time and after refreshing page it's disappear.
View Replies !
Refresh A Page
I have a login script, and you can log in either on the main page, child(?) page in a seperate window. Now if someone has logged in on a external page, then closes that window, they dont show up as logged in on the main page till they refresh it. I need for that page to automatically refresh just once when it comes back into focus, but its important that its just once.
View Replies !
Refresh The Page After Submit
Does anyone know how I can automatically refresh the page after the script is executed ( after user hits submit) and the database is updated, so that the line "The main office is now..." shows the new entry into the db? Thanks.
View Replies !
Sense Page Refresh On IE
I am able to sense page refresh (as opposed to submit) on firefox but the code does not work on IE. On firefox, $_SERVER['HTTP_CACHE_CONTROL'] returns 'max-age=0' but on IE it always returns 'no-cache' which is why the code fails. How can i sense page refresh on IE?
View Replies !
Page Does Not Refresh On All Browsers
I have a web page I wrote for a class assignment (which I embellished a little) that doesn't seem to work on all browsers, platforms, etc. The problem appears to be that the page doesn't refresh completely when the page calls it self. The refresh (which should happen when the form action fires) should reload a file into an iFrame, but it doesn't. I do have 3 submit buttons on one form, but it works well for me. On the machines that don't display the results properly a click of the Refresh (or Reload) button retrieves the new data? The link to the page is:
View Replies !
Force A Refresh Of The Page?
Internet Explorer is making me crazy. Things that works OK with FireFox, does not work properly with IE. Situation: PHP script A have a link to a PHP script B. Script B changes some $_SESSION variables and then do a re-direct back to script A. With FireFox, the page is refreshed when I click on the link to script B and the results have be seen. But with IE, the page is not refreshed, so the changes made due to changes in the session variables, is not visible for the user. I have to press F5 or click on the Refresh-button in the toolbar to make the changes visible. Any hints about what I can do to force a refresh of the page?
View Replies !
Function That Will Refresh A Page
Is there a php function that will refresh a page, similar to JavaScripts location.reload()? I read somewhere that location.reload isn't supported in all browsers, so I want a php function that will be supported on most browsers.
View Replies !
Login / Log Out - Need To Refresh Page?
I got a login / logout script that resides on the same page. Basically if the URI includes action=logout I call a logout function that kills all the session variables. Otherwise I try to log in using the posted data, or do nothing if the form wasn't posted. My problem is that I have somewhere on the page a small piece of code that says: 'You are logged in - <link>logout</link>'. Now upon successful login this piece of code does not appear (until I refresh the page or navigate away from it) and similarly the piece of code still appears once I am logged out (until I refresh the page or navigate away from it).
View Replies !
Refresh To Reload The Page
i was using header("Location: http://test.com/alt.php"); on my php page as a refresh to reload the page as i need to refresh the whole page but hold my sessions i set to rest the forms on it. but then i had to create a header redirection page in the website to have get the websites template page on the page i created for the menu logo etc. so turning the original page into a redirection to achieve this. So now my php page is in zen cart and is called in on the first the redirection nut when i try and use a second header location it doesnt work.
View Replies !
Page Doesn't Refresh To Current One
I have a comment/feedback section to my website. After a person enters their comment and submits it I was hoping to have it refresh the page with the current page and their comments now displayed, but it is redirecting me to another page that I include. Code:
View Replies !
How To Prevent A Whole Page Refresh
I built a site in PHP. All the site is working with the same URL, which is rachelkinarti.com. My paging is done with forms that sends the submit info to the same index.php script. The problem is that every time a user is changing the page (via the main menu or other ways), all the page is refreshed (dissapear for a while and appears again with the new page), even though most of the page is unchanged. Does anybody know what can cause that problem (maybe caching issues?) and how can I solve it?
View Replies !
|