Please tell us first what you have tried. There are multiple ways to achieve this.
I can tell you are away but I want you to try something first and then tell us what you tried and then we will correct you. This will give you an opportunity to understand the problem and find the solution. This community is not only to solve problems but to learn something out of this.
I hope you will try by yourself first.