Hi Andrei, and welcome to the boards.
You can send variables to a script just like a html-form would do, with either post or get methode, no matter which scripting language is used.
Therefor you can either use the loadVariables command, or better a loadVars object with the send methode.
To receive values, you have to modify the script.
The best way to understand this mimic, is to do a tutorial.
We have quite a pool of tutorials here, and all of them communicate to a script.
So look for one that suites your interests most, and walk through it.
Try to do a beginners tutorial, and dont start with remoting or so

Guestbook, E-Mail or GreetingCards is a good start. Or look into saving and loading tutorial, which explains everything you need when communicate to a server.
Good luck, and dont hessitate asking the board