Period leaks HELP!!

So I went to a new school and on my first week I had an accident any advice on how to avoid period leaks and horrible cramps