The terminology of "forename"/"firstname" and "surname" is itself flawed.
While many blended families use a hyphenated family name, such as Smith-Jones, there are some who just use both names separately, "Smith Jones" where both names are the family name.
Many european family names have multiple parts, such as "de Vere" and "van den Neiulaar". Sometimes these extras have important family history - for example, a prefix awarded by a king hundreds of years ago.
Side issue: I've capitalised these correctly for the people I'm referencing - "de" and "van den" don't get captial letters for some families, but do for others.
Conversely, many Asian cultures put the family name first, because the family is considered more important than the individual.
Conclusion: Prompt for the users entire name, not part of it - allow your users to enter their name as they use it.
If you need to know their family name, prompt for it separately.
If you need to know what they're called, prompt for it.
(I've quoted liberally from a previous answer of mine on stack overflow)