Click to See Complete Forum and Search --> : "run a PHP code" button?


Dennis_Ingham
08-14-2006, 03:32 AM
Hi

I have the following PHP code:

<?PHP
$result_correct = $row_rs['correct'];
$result_uncorrect = $row_rs['text_uncorrect'];
$answer = $row_rs['correct'];

if ($_POST['quest'] == $row_rs['correct']) { echo "$result_correct";}
else { echo "$result_uncorrect, the correct answer is: $answer";}
?>

I want it to be runned when I click a button. How do I do that?

Cheers!