We like learners to make attempts at full sentences using the words and phrases they are querying. We don't just replace a grammar book by explaining whole aspects of the language.
Write some sentences using "have to" and "need to" and we will look at them and see if you are using them correctly.
Please also look at the amendments I made to your post in red. Check your spelling before you post.
Student or Learner