Hello Community,
I'm having trouble with data returning after my form has been submitted.

So in my case I have a notification system on my website and a setting popup window with a clear all checkbox so when the user clicks it then click save, after the form submits. All the notifications are still in the notification dropdown but if I refresh the page they will go away. So it's removing them from the database but not removing them from the list.

Thanks for responding, but I don't think you read it correctly.

Member Avatar

show your code

Could it be because the php script is below the notification dropdown?

but I don't think you read it correctly.

Than explain your problem better

Member Avatar

I don't think you're going to get much in the way of help unless you show any relevant code and/or explain your problem better.

Never mind I think I'll just try placing all the PHP code at the top of the page.
What I think is happening is the notifications are being loaded before the the php functions clears the notifications. The notifications are at the top of the page and the php script that clears the notifications is half way down the page.

I fixed it I put the PHP code above the notifications dropdown.