I'm try to find out how to proceed if I want to compare a text field value with values from an array?
HTML: I have a textbox, and a Check button
<form id="text_check" method="POST">
<input type="text" name="postcode" placeholder="e.g. text">
<button type="button" class="button" name="Check"/>Check</button>
</form>
The logical steps should be: enter text--> click submit button --> the entered text should be compared with a given array, and return with a positive or negative message...
I am a beginner, so any help is welcome!