Do both parents have custody of the child if both of their names are on the birth certificate?
If the parents are married there is no real determination of 'custody' per se. When married, both parents are generally considered to be legal guardians. Custody is determined by a court, usually in response to a petition for dissolution (divorce) and/or a motion for child support.