[fl8 as2] do I use php or php cli to build the server script to receive form vars?

I’m putting together a form but I guess you have to create a server side script to receive the variables and then email them somewhere… but I’m not sure if I have to use php5 or php cli… can someone shed some light?