I am told that if you link back to the page with a question mark after the pagename in the link, you will get a refresh of that page. In other words, assuming you are returning to the results page with a php header() command, you would do this -
I have not tried this but it sounds like it might do what you need. Alternatively, you could try it with a dummy variable there, like this -
Thank you for answering.
What I do is for a mobile application, and can press any button to update. page.....
The code I have is that when I modify some records I aimed to the "modify.php" page.
$updateGoTo = "modify.php?";
Where you think that I can put (or as I put) code that tell me?
because now, it modifies I well record, but when I go back to the page edit, even not pulse update, the results of the modification are not.
Try this -
$updateGoTo = "modify.php?dummy=0";
>I go back to the page
Are you using the back button to go back? That will typically show a cached page. There are various methods to not cache the page, but the simplest thing to do is just redirect back to the results page and not use the back button.
Thanks for the tips, I've tried both options I mention and it didn't work.
When I redirected the page, shown without styles, and data...
I pass him the link, and if you press right on the arrow of any name, it will be forwarded to the page change, when you modify any data and press on "update record" will see what comment you.
If it is what I try to do, but when redirect it to the main page, I get the functions and styles.
Tell me that there are several ways, could you teach me some.
1 person found this helpful
>If it is what I try to do, but when redirect it to
> the main page, I get the functions and styles.
I'm not sure what you are saying. Can you try to clarify?
>Tell me that there are several ways, could you teach me some.
I'm not sure I understand the workflow. When I tried to edit a record and hit the update button, I was directed to another page. What is that page used for?
Once the user clicks the submit button on the update form, where do you want them to be directed to? The list, or a view of the updated record?
You can see what happens in the following link, so I think it will be best that you see it that I explain it to you
I pass him the link, and if you press right on the arrow of any name, it will be forwarded to the page change, when you modify any data and press on "Actualizar Registro" (update record) will see what comment you.
Yes, I have already gone through that. What is not clear is if you intended to stay on the update page after the update, or return to the master list. In any case, we'd need to see the code in modificarTodoBUENO.php to be able to troubleshoot the problem.
OK, a few things aren't making sense to me. In your Update code block, you have a redirect set to go back to the list page after the database is updated:
$updateGoTo = "./informe.php?dummy=0";
header(sprintf("Location: %s", $updateGoTo));
Yet, when I click the update button, it does not go there. It stays on the update page. Are you sure the code you posted is the same code on your site?
If that is the same code that I have (you can look at it with the option of Ctrl+u (Firefox/Chrome)
I touch the button "Actualizar Registro" (update record)
and if that me forward to the previous page. But the results are not seen
but if it touches the black button of "Behind" (It Arrives at the left side) 2 times (not because it has to be 2 times) if that go out the results well.
I have not understood the last part well, not that you want to say to me. Thank you
> (you can look at it with the
> option of Ctrl+u (Firefox/Chrome)
No, you can't. Server side code is not sent to the browser. It is executed on the server.
>and if that me forward to the previous page. But the results are not seen
Yes, I understand that. But if you look at the browser source code for the page where the results are not seen, you will see the results are there! Did you comment out the references to the .js files as well as the external counter?
I have not commented on anything towards out. The truth that not which I have to comment. All the .js???
And which is the external counterr?
>All the .js??
Yes, for now. Your site is currently down completely or I would show you exactly which lines, but for now just get rid of all of it.
>And which is the external counterr?
Your page contains a link to some stats counter. Remove that as well.
The truth is that my knowledge on this new language are not good (I guess that already noticed you)
I've taken the .js that I had in "modificarTodoBueno.php" but not be where is it from "some stats counter"Before uploading it will send you the code if it done wrong.....
Yes, that looks fine. But as I said, your site appears to be down. I can not reach it at the moment.
It's working well!
Without styles, but of course it is normal I get them
If there is now a problem with the page, I can not enter.....
Thank you in your time and help!!!
I will look it tomorrow when sees which is the problem that I cannot accede to the page
The problem must belong to the servant (since it is free)...
I have created a new account. http://escuelas.comoj.com/AppColegio/formularios/informe.php
I have tried of modifying the .js, but not with which I must remain.
I suppose that it is some problem of incompatibility.