Hello php programmer.

I have some problem.

I want to insert value in a textfield when a button click.
I want to call a php function from javascript.

Is it possible to do above things?
please help me with source code.