If someone could write this for me it would be great, and also possibly include some flood protection so any user could only use it once every 5 minutes or something? Although flood protection is not that important.
Hope I have no asked too much, thanks!