You will only need to use php if you are connecting to a database or something similar.
It seems to be that you just need to place an input textbox on the stage, assign a variable to the textbox, then that variable will then hold the name.....
A computer always does what you tell it to, but...