I\'m trying to create a maths quiz page. The first page needs to generate a question shown as a header, that asks the user what two random numbers are multiplied together. Then
You must have the header()
code before any output, especially that echo
statement.
Apart from sending the headers before you output something, i think your form action is wrong, it should be
action="<?php echo $_SERVER['PHP_SELF']; ?>"
You are sending the POST via FILE
protocol, it won't be processed by Web Server/PHP.
And also, you are not POSTing "first" and "second" fields.