refresh select / drop down box without page refresh

I have a select box that holds database items if any of the database fields are TRUE.  Once I click submit, the field turns to FALSE and the next time someone visits the page, that database item will no longer be shown in the select box.

However, the only way I have found to clear the select box is to press the submit button twice, which is something i don't want to do.

I want the select box to refresh without and response.redirects to other pages because I want the user to remain on the same page and read a confirmation message.

This confirmation message must be on the same page

Is there any way that I can force the select box to refresh itself without refreshing the page?  Maybe creating the select box inside a function and then calling the function at the end of the script?

Can someone please help me out?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David LeeCommented:
Greetings, sh00tar.

You can refresh a select without refreshing the page, by moving the select to anotehr page and then showing it in an IFRAME on the main page.  To refresh the select simply refresh the page page it's on.  Because it's contained in a page being shown in an IFRAME it refreshes while the main page remains unchanged.

sh00tarAuthor Commented:
is there a way this can happen automatically? I don't want my users to manually press refresh.

Do you have any steps i can follow?
David LeeCommented:
They wouldn't have to manually press refresh.  The contents of the IFRAME can be refreshed in an ONCLICK event, an ONLOAD event, pretty much anywhere that you can fire some code.  Here's a link to another question on the the same issue wehre I posted sample code:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David LeeCommented:
Any update, sh00tar?
sh00tarAuthor Commented:
I've managed to accomplish my task without using your suggestion.  I'm sure your answer is right though and I will award you the points.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.