This is my statement, how would I add a refresh() so the page refreshes echo ' onclick="submitRating(\''.$item.'\','.$i.','.$max.');"'; Code (markup):