How do I write this PHP script?

I need to write a PHP script for a HTML document separately (which has one text field and one submit button). The PHP script needs to write "Error! Wrong index number." on screen if a user doesn't input and submit the number 780 in the text field. If 780 IS entered and submitted, then we should be able to see the following line on the screen: "Boris Jakovljevic, IT". How do I write this code?
 
Back
Top