Thank you very much for you answer, but...
I still can't figure out how it works, still errors, still being pissed off... Could you be that good and give me full script (yes, you are for sure thinking I am just lazy to do that and want you to do all my work. Yes and no - I am not lazy, but scripting languages aren't my light side, all I know is HTML and CSS and I really need this for my server, cuz this system looks cool)? Many thanks...