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.

Recommended Answers

You have to change the value of your checkboxes using javascript
You can use window.opener

Jump to Post

show your code

Jump to Post

but I don't think you read it correctly.

Than explain your problem better

Jump to Post

All 9 Replies

You have to change the value of your checkboxes using javascript
You can use window.opener

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

Member Avatar

show your code

It's an entire page.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.