Bash and html forms

i want to create an html form and have it processed by a bash script. i can not get it to work. any help would be great.everything had been chmoded correctly.

here is the html:


First name:

Last name:



here is the bash script:


echo $0 > mylog.txt

the bash script runs in the shell ok, but whn i try to run it from a browser i get…

Method Not Allowed
The requested method POST is not allowed for the URL /tmp/