What is the actionscript to send the variables to a .php file

and what is the php command to send some variable back to flash?

im making a shoutbox you see, also how would i display all of the info in flash?