I thought that I could localy set up a server on my system by installing Apache but it didn´t work. PHP interpreter also works fine,
How do you get PHP interpreter to work if the Apache webserver isn't working?
but only for stand alone scripts not for scripts whivh get their input from a HTML form
What do you mean by stand alone scripts? Examples?
First of all, you should get both of PHP and apache to work, and then read some tutorials might help.