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

PHP/forms: refreshing page with new results after submit

P: 25
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
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 431
It will be hard to help you without seeing the code.
Dec 7 '11 #2

P: 25
that's fair! i thought this might be a general problem that someone might have encountered before.
Dec 7 '11 #3

Post your reply

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