I have a school assignment in which I have to create a website for a fictional shoe store for one of my teachers. It isn't an e-store on it's own, mostly informative, but there is one page where costumers can enter a code that they got at the store and maybe win a prize.
As you can see above I have a field where the code can be entered and below that a button to confirm that the user wants to enter that code. Under that is a text that says (in Dutch) "You have won:". Under that text there's another piece of text that says "Your content has been submitted" (This is of course the submit succes message from the button). Now what I want to do is this: When a visitor of the site enters the code they got from the store and click on the button, I want the succes message to say the prize accompanied by that particular number. I have made a dataset below:
I have numbers from 1 - 1000 in the first column and the prizes in the right column. I'm trying to get the button to check which number is accompanied by which prize and then show the prize in the succes message field.
How do I do this?
Also, I need an option that when the submit button is pressed another button will show up when if costumers click on that one, they can enter their contact details and get a confirmation e-mail of what and when they can pick it up.
Thanks in advance everyone!