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.





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 Complete Forum Thread with Replies

Related Forum Messages:
Refresh Page After Submit Button
I have a form inside a PHP page. When user fills user input and hits the submit button, the changes are reflected in the mYSQL database immediately but the PHP page itself isnt updated immediately. If i hit the Refresh button, the changes arent reflected on the page still. But when i go back and come back to the PHP page, the changes are reflected.

View Replies !
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 !
Refresh On Submit
I have a php script with a form that insert data in a mysql db and
when I click on submit I would like the page to refresh after the
insertion, how can I do that? it's a php script that display data from
a mysql db, and the submit button modify the content of the page yet I
need to manually refresh to see the result of my insertion.

it kinda looks like this:

echo "<form method="post" action=$php_self>";
echo "<br>$dispayed_colname:<BR><INPUT TYPE="TEXT" NAME="hey"
SIZE="40">";

echo "<p><input type="submit" name="submit_the_values"
value="$submit">
</form>";

if($submit_the_values){
$sql=mysql_query("INSERT INTO $tabname($cols_to_insert)". "VALUES
($hey)");

//I would like to refresh $php_self here, please tell me if you know
:)

}

View Replies !
Refresh And Submit
I have a problem that I'm sure is simple but I have searched the newsgroup
and have not found it posted before so I apologize if it has been asked
heaps of times before.

I have a page that list all current orders from customers. Customers can
order at any time. I have a checkbox beside each listing so that as each
order is complete it can be ticked off. I want the page to refresh every 2
mins so I have added ....

<meta http-equiv="Refresh" content="120" />

this will enable me to see new orders. However I will lose the information
from the check boxes telling me which orders are completed if I have not
pressed the submit button first. Is there a standard way around the
refresh/submit problem?

View Replies !
Using Submit To Run Executable And Refresh Window
If someone knows how to take a page with an image on it and have a submit button pass two variables that are input from the page to an executable stored on the server, then refreshes the page when the executable has finished doing it's thing.

View Replies !
Submit Form In A Meta Refresh...
I have a select menu somewhere with different actions, it takes people to a landing page and depending on the selected acion, it redirects people to the proper page. The problem is I need to transfer items selected with checkboxes via this page to the final page, automagically so to speak :)

I dont want to use javascript, so body onLoad is out of the question. Can it be done?

View Replies !
Have To Refresh To Submit Data To MySql
I'm using PHP/MySql for a calssifieds type application. When I add categories via the admin panel, 99% of the time I have to refresh the browser in order to get back to my submit page.

It always asks if I want to re-post the data so it woud appear the data has been submitted to MySql. After redresh I can submit another category but usually with same problem. I have DSL and all seems fine there. Have other PHP/Mysql sites with same host and they seem fine. Any ideas?

View Replies !
FORM SUBMIT PROBLEM - Get The Email To Submit On The Same Page
I would like my form to submit via email on the same page, once the form is submited it will then load the next page yourquote.php

I cant however get the email to submit on the same page, it switches almost striaght away to (yourquote.php) and sends the email from that page, i have a loader gif which is meant to load on the form page when submit is clicked which should disapear when the email is submitted only then should it change page.


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 !
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 !
Can You Use PHP To Refresh The Page?
I would like a user to be able to click a link and the page will refresh, like pressing the refresh button on the browser. Can you do this in PHP?

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 !
Refresh Page With Php
Was wondering how you would get the browser to update the data in a table, would it be possible to have PHP refresh the whole 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 !
Refresh For The Page
i had plan to refresh the page with certain time? how should i done for it? and how to make the session expire with certain time?

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 Page Code?
What code do you use to refresh a page after X number of seconds?

View Replies !
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 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 !
Is There A Way To Prevent A Refresh Of A Page?
Is there a way to prevent a refresh of a page?
When a user refreshen on a certain page, pictures he already uploaded, will
upload again...



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 Refresh A Html Page Using Php?
eg
echo "testing";
echo "testing";
echo "testing";
echo "testing";
echo "testing";

 if(isset($_REQUEST['button'])){
//what should put in here to refresh the page?
}

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 !
Refresh The Page On Click
I'm trying to find a way to refresh the page upon the clicking of a link that does not use header's.

reason being there isnt anyway i can get the statement up above all the output.

The only way ive found of doing something similar is:

<META HTTP-EQUIV=Refresh CONTENT="3; mypage.php">
Which just refreshes the page every 3 seconds.

Not really suitable to be honest.

Can anyone think of another way to handle this?

View Replies !
Refresh Page With New Contents
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. Code:

View Replies !
Using Page Refresh And Mysql
I've got need for a page to keep checking the mysql db at a regular interval, basically as a way for the page to await my input to perform a task. I've been able to accomplish this by having a query performed and then, if the value is one type to simply refresh the same page (thus iniciating a new query) and check for an update again. The problem is with the html page's constant flicker as it refreshes each time. Is there a way I could have just the db query refresh? And leave the html alone so it doesn't flicker?

View Replies !
Can Frame Refresh The Whole Page
I have a page with two frames, what I want is to set it up so that one frame can refresh the whole page.

Because the top frame is a form and the bottom page is the displays lists of database entries, but it get changes everytime the form on the top frame is submitted. I've tried to involving javascript on this, it worked, but it doesnt always work, sometimes it fail to refresh.

View Replies !
Refresh Page/values
i have a page that lists values stored in a mysql database, and echos them like this

PHP Code:

echo number_format($whatever);

and at the bottom of the page the values can be edited and saves in the database in a form, what i need to know is how can i make the page display the updated values, i tried header( 'location:**' ); but i got a headers already sent error and i tried <META HTTP-EQUIV=Refresh CONTENT="0; URL=training.php"> which works but it shows you the old values then a little bit later it refreshes and showsthe new one.

View Replies !
Refresh In Current Page
How to force a refresh in current page? Appreciate it if someone can show me the code. Reason: I have a page that allows user to change an image file. The image file is updated in the file directory. However, the 'old' image still shows in the current browser. The image will be updated only when I do a 'refresh' on the page.

View Replies !
How Can I Refresh Text On A Page
I'm trying update my shoutbox to display new text live. Is there any way I can go about having Javascript run in a hidden iframe to update information, and then use Javascript on the parent page to show the text as it comes in?

My shoutbox is now skinned and thus refreshing is sluggish and annoying. Edit: With a quick search I found a plugin-based shoutbox using AJAX so no autorefreshing is needed. Does anyone know how this would work with AJAX. I have never touched AJAX unfortunately.

View Replies !
Refresh Only One Dropdown Box On A Page
I have a form with many fields and a drop down box called fruit. Lets say it has three choices:

apple
orange
banana.

If the choice is not on the drop down box e.g. grapes the user clicks a link to a new table called add_fruit to add the new fruit and details about the fruit. On submit I want to close the add_fruit table and go back to my original form - refresh only the dropdown box "fruit" - so now the user can pick grapes.

View Replies !
Clear GET & POST Value On Refresh Page
Hi everyone.

when I fill a form and then submit it , it works right
[address?value=sth]

But I wanna if then form refreshed by user, address changes to
[address] without POST & GET.

View Replies !
Canīt Load Page Before Refresh??
Why my pages donīt appear after linking to them (.php3), I have to Refresh the page and then it appears. And of course I loose the passed information from previous page??? This is REALLY bothering me A LOT. Please, does anyone know the answer???

View Replies !
Stop Sql Insertion On Every Page Refresh
The page has a form which basically take in a file name, and and upload button does the uploading.

the php code at the top of the page takes the file name and insert the name into a database.

the problem is: everytime the user presses the refresh button, a new entry is inserted into the database.

View Replies !
IE+Page Refresh+Resubmitting Data
I am in the processing of developing a site making use of PHP and MySQL. The problem I am experiencing is that when I refresh Internet Explorer, the data that was processed by a form is resubmitted to the database - can anyone tell me what the correct process is to avoid having this happen. The only thing that comes to mind is to, after the processing is complete, redirect to another screen - ultimately I would like to avoid doing that.

View Replies !
Forcing Queries/php To Refresh Page
let's say I have a page listing records in a table... If I go somewhere else and later on reload this list page, it does NOT refresh the list (if more records were added to the table meantime). What should I do? Is there a way to force a refresh?

If I turn off the cache, are people still going to be able to cache the graphics (i don't want to force a reload of every element, just the page itself)?

View Replies !
MySQL DELETE: How To Get Page To Refresh?
I have a script that deletes records in a table. It works fine. However, it redirects the browser back to the page and the record stills shows there. Only after the page is manually refreshed does it disappear.

I've used both header("Refresh...") and header("Location...") to accomplish the redriect, but no dice. The only thing that seems to work is if a unique URL is pushed into the address bar, which I do by appending md5(microtime()) to the end of the redirect URL.

View Replies !
Auto Refresh The Page Once It Is Called?
is there a method in php that will auto refresh the page once it is called? I have a dynamic image which should change based on the parameters but often it does not update and I have to press the F5 key.

I am using the <img> tags so is there a php method to refresh a page or another way round this problem?

View Replies !
Reload (refresh) Page Within An If Statement
Is there a simple way in php to reload a page coded within an if statement.(see code below)It's very important that the session stays intact. Code:

View Replies !
Refresh The Page - Server Side
I need help to refresh a page , but it cant be client side... it must be server side because i want it to refresh even if people arent browsing my site.

so is there any way to make a refresh that will work even if nones on my site?

View Replies !
How To Fix Randomized Number When Page Refresh?
i am using mt_rand() to generate a random number,however how can prevent it keep on changing when page refresh? Code:

View Replies !
How To Refresh A Page On Focus, One Time,
Does anyone know how to refresh a page on focus, one time, so it doesnt keep on refreshing the page...

So if I am in one window, and go back to another window, the window I go back to refreshes one time only, since that is the window that will have the focus ?

View Replies !
Page Refresh + Incremental Output
IS there a way to say make a page output a number then sleep for a certain number of seconds... then refresh and display number+1 and so forth so a set number of times?

for ($i=1;$i<=60;$1++)
{
echo $i;

sleep(5);
}

but all it does is sleep forever, then at the very end dumps each echo all at once.

View Replies !

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