I learnt from an article that the sentence "How to spell your name" is wrong.
The author said we can say it this way:"Could you tell me how to spell your name?" or "How do you spell your name?"
But recently, I've watched a movie named "How to lose a guy in 10 days".
In this movie, the phrase "how to..."is used as titles of articles in a magzine, such as "how to talk your way out of your ticket", "how to get a better bod in 5 days"...
So, i feel confused about the phrase "how to".
Is "How to spell your name" wrong, anyway?
How to Lose 10 lbs in Two Weeks and How to Marry a Millionaire, etc, are declarative titles; that is, they're not asking "how," they are telling you how to do something. It's a shortened form of the statement "Here is how to......"
To get the correct spelling of a person's name you would ask "How do you spell your name?" or "Can you please spell your name for me?"