PHP Day 24-1 Submit and Display with one PHP File
2017-10-12
Source

Source

Form Display

Form Display

Processing Form

Processing Form

I guess you don't need two files.