I've got to say, if you're a beginner at PHP then it's a pretty nice script - doesn't have much security but it doesn't seem like you're too bothered, so considering that you've done a good job (it seems to work afterall)!
Nice work I've been doing PHP for years now and I don't think I could've done this when I started out