473,396 Members | 1,898 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,396 software developers and data experts.

PHP/forms: refreshing page with new results after submit

I am using PHP to edit the contents of an XML file based on user input in a form..the contents of the XML file are dynamically displayed on the page using XMLHttpRequest

In my PHP I use "header('Location:abc.html');" to reload the page after the form is submitted and PHP script runs

The problem I am running into is that the first time I load the page in a session (and ONLY the first time), the data displayed doesn't refresh after I hit submit (the script runs in the background which I know because the data in the XML file changes)

After I manually reload the page, this works perfectly fine (the data display shows the edits based on the previous user input AND further user inputs are reflected correctly after hitting submit)

It sounds like a really bizzare problem..I was thinking it might make sense to force reload the page twice after hitting submit?
Dec 7 '11 #1
2 2047
zorgi
431 Expert 256MB
It will be hard to help you without seeing the code.
Dec 7 '11 #2
that's fair! i thought this might be a general problem that someone might have encountered before.
Dec 7 '11 #3

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

Similar topics

1
by: Paul Oakfleet | last post by:
The script below will disable Submit button until user accept terms, and will redirect user to another page after clicking on Submit button. The script seems to work fine on my PC (Windows XP,...
31
by: Greg Scharlemann | last post by:
Given some recent success on a simple form validation (mainly due to the kind folks in this forum), I've tried to tackle something a bit more difficult. I'm pulling data down from a database and...
3
by: G25532 | last post by:
I have a form that contains a macro button which on clicking, opens a subform over the main form. I have in the macro "Where Condition" the following: =!! The subform has related fields as...
2
by: VMI | last post by:
My aspx (source.aspx) has a hyperlink that opens a popup page: HyperLink_anadirNota.NavigateUrl = "javascript:CreateWnd('followup.aspx?id=" +txtNum + "',850,410,true)"; Now I want source.aspx to...
2
by: Ben | last post by:
Hi, One ASP.NET transactional page conducts a long transaction in a button click function. I want to display the transaction progress info in label control without refreshing page. It is...
0
by: ravi | last post by:
Hi, I am getting problem on refreshing page, when i close child window ..here i am not using button to close window just clicking on top of the page above cross singn to close window .
2
by: senpark15 | last post by:
hi everybody, I want to access google search page results from windows application using C# and store into Sql Server database? can anybody help me?
1
by: localp | last post by:
the code found below is in a javascript file. what i am trying to do is to write a document to a page and submit it ( or to inplement a back ) .. for this i want to create a button .. when i wrote...
8
by: Harvey Schmidlapp | last post by:
I have a fairly complex form (generated by means of an ASP 3 page). The form is used to define a query against a database. After running a query, the user hits their browser's back button and goes...
3
by: manuitpro | last post by:
Hi All, I have page with many tabs, in one of the tab i have a form (only a input box) and i want to show some output on the same tab view based on the user input. (bvy using php function) I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.