Generally the court will inquire as to the indentity of the father and he will be given notice. He can appear and express his objection and the court will render a decision.
You file the completed forms at the courthouse and attend a hearing. Some states require that you publish a notice in the local newspaper too. It is easier when both parents agree to the child's name...