Php in flash e-store?

Hello,

	I have a theoretical question about constructing a e-store in flash. There are some free ready-made shopping cart systems for flash that use PHP. Why exactly is the PHP script used? To avoid running out of stock? 

	Im not very comfortable with PHP, so I wonder if it is possible to make a simple shopping cart system using variables. For example after pushing a button “add to cart” the price and quantity is added to certain vars, that can be used afterwards to send the client the bill via mail. 

	I would like to offer clients to choose between “bill to mail” and bank link. Could somebody also tell if the var system can be implemented in the “bank link” system with SSL security and stuff? I will hire a programmer to do the bank link system just don’t want to run into unpleasent surprises when the programmer will take a look at my var system and start laughing. :)

Thank You very much for takin the time to read my questions through :slight_smile:

Eduard Ilves