I wrote some function in if(qa_clicked('button')) so that if I click button it will insert a record to db. But I found that if I clicked once and kept refreshing the page, it would keep doing things in the IF CLAUE (inserting). Am I writing the wrong code or is there a way to avoid that?