hello, i want to know how I can book online flight reservation ?

That's a tall order -- please explain and show what you have done to start solving the program. For example what are the program requirements? I assume (maybe wrongly) what you want to do this as a school assignment. If that is true then what did your teacher say he/she wanted the program to do.