/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $answer = $_POST['answer']; if($answer == '8'){ 'success' => 1, 'message' => 'Correct! 3 + 5 = 8' ) ); }else{ 'success' => 0, 'message' => 'Sorry, that is the wrong answer.' ) ); } // just to have an extra failsafe! 'message' => 'You must choose a valid response.' ) );
URL: http://www.dropthenerd.com/ajax-a-simple-approach-that-you-will-use-and-reuse/
Comments
