473,327 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

refresh and submit

Hello,
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? Can anybody offer suggestions?
Thanks for your help.
Noel
Jul 17 '05 #1
4 5477
<meta http-equiv="Refresh" content="120" />

This meta-tag refreshes the page, but does not submit any form. This does't
work, because the browser (that refreshes the page), cannot know which form
to submit - if any - when there are more then one, so the refresh won't work
for data-submits.

Well, the solution is to write a JScript/JavaScript, that submits the form
every once in a while, and reloads the page this way.
Jul 17 '05 #2
Transfer all the $_POST varaibles to $_GET varaibles will be good enough if
the security requirment is not high...e.g. not using refresh, but redirect
to something like
http://yourhost.com/process.php?step=1&var=1
Jul 17 '05 #3
"Noel Wood1" wrote:
Hello,
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? Can anybody offer suggestions?
Thanks for your help.
Noel


I suggest you have two frames. Once with boxes you can check, and the
other one listing orders. The one listing orders would have
auto-refresh.

The one with checkboxes would be refereshed only upon hitting the
submit button. This way, you can issue submit at your own leisure
while seeing what new orders are being added.

Another option:
There may be a way with javascript to have a form submit automatically
upon selection of a checkbox. This would obviously slow down the
browser response (due to refresh on every box selection), but it *may*
be another option.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-refresh-...ict151189.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=506650
Jul 17 '05 #4
On Sun, 19 Sep 2004 16:07:24 +1000, "Noel Wood"
<el**********@optusnet.com.au> wrote:
Hello,
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? Can anybody offer suggestions?
Thanks for your help.
Noel


You can submit forms with client-side javascript (people commonly do
it to to use a graphic instead of a submit button in forms).

Jonathan Beckett (jo********@pluggedout.com)
working on : http://www.pluggedout.com/penpals
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Mark | last post by:
I have a working PHP/MySQL application used for data entry. The data entry screen includes a "Save" button. The PHP code for this button looks like this: if (isset($_POST)) { if ($_POST ==...
7
by: kindermaxiz | last post by:
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...
6
by: laura | last post by:
I'm doing a page which gathers some text in the form of a text box in a <form>. This text is saved to a text file, notices.txt and I want to be able to display the saved text on the page, as soon...
1
by: tony wong | last post by:
the page has upper frame (submit record) and lower frame (show records). i wish to refresh lower frame once submit record at upper frame. i try this, it works to refresh the lower frame...
10
by: tasmisr | last post by:
This is an old problem,, but I never had it so bad like this before,, the events are refiring when clicking the Browser refresh button. In the Submit button in my webform, I capture the server side...
1
by: Ibrahim. | last post by:
Hi, I have a login page, the problem I'm facing is like this; 1. Login page with submit button (being default button); 2. When first time the page is submitted then submit code is called. ...
2
by: entfred | last post by:
I was experimenting with trying to select the same item in a select box twice in a row and found out that you need to do a refresh (view - refresh) in Internet Explorer. This is so you can click...
11
by: gotonagle | last post by:
hi, can some help me in this regard i m entering some values in my databse from my asp page. for this i m using a submit button which submit the form to a new page that is 'insert.asp'. this page...
1
by: raghuvendra | last post by:
Hi I have a jsp page with 4 columns: namely Category name , Category order, Input field and a submit button. All these are aligned in a row. And Each Category Name has its corresponding Category...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.