If you have a HTML form and have a text field that when the user clicks on this so that its the one which the user can input data in is there a way of PHP changing the color of the background of the text field?

I would like to find a solution designed in PHP.

If it is possible can someone please provide some example code and an explanation on why it works?

Thanks!!