I am attempting to make a form with just 3 fields. The first 2 fields are of course quite simple, Name, and Email, but the third one is a code field. A secret code that I would generate would be necessary for the form to be validated, and send the user to the page they want to see or whatever other action I impose. Since this is going to be run on a wordpress site, I will be using this form on multiple pages, all requiring a different code to validate, the code of which the private user(s) will be provided with. I was told that all I needed to do was create a MySql table with the list of codes, the php form, and the validation code necessary for the specific page the user is on, so that the user may not just enter any code from another one of my pages and get the form action. The form would of course be called to wordpress pages/post with a shortcode like [cform p:001] the p:# indicating the respective name/number of the code I created to pull of the mysql table.
The biggest problem I have is that I have is lack of understanding towards these two languages (PHP & MySql). Could anyone offer any sort of help or where I should get started? Thank you so much!