I was going through some tutorial on Youtub
Of course I made a few changes to suit my needs.
I ended up with the code below.
The HTML form: