Hi Philip, thanks for your answer.
I'm new in this forum.
So, where I can get resolve with my idea?
Originally Posted by Philip M
This forum is not a free coding service. As a general rule, the people helping out in this forum don't write code for others (especially code that appears to be for homework), but try to help with fixing code that doesn't work. You may perhaps get someone to write this script for you, but you'll be far more likely to get help if you have made a substantial effort and written some code yourself. Then someone here will almost certainly help you correct/improve your work.
It is your responsibility to die() if necessary….. - PHP Manual