How to add a HTML submit quiz with correct and incorrect alert

oli9116

New Member
I have created a mini website, to teach myself JavaScript and PHP, the idea being that when you hit "play" you can guess a city by cllicking on the tiles to uncover the city in the background. I have the page working for this here: http://hoverpixel.netii.net/play.htmlHowever I'm struggling to add the PHP/ JS to the text entry form. Essentially I need to use a submit form to say:[*]When New York is entered - correct well done! (either as text or an alert)[*]Or when anything else is submitted - wrong try again!I've searched everywhere for HTML submit forms that incorporate this functionality but have had no luck whatsoever :/Please could someone point me in the right direction, or send a link to a sample code that has this functionality that I can edit? Many thanks, any help is greatly appreciated!
 
Back
Top