Hello, I'm newbie, and need some basics

..
I wanna call PHP from Python, for example :
After I run the python script, it will run the PHP code automatically from a site(site.com/test.php) (clicking on the button on the PHP page automatically )..
EXAMPLE 2 :
And After I will run the python script ( python script.py :P ) it will automatically write on those boxes something that I wannt, and then it will click on button!
Thank you