Question: You are using the following code to decide if a button is clicked, but it is never returning true. Which step is most likely to shed light on the problem?

  1. Make sure the input field displaying the button is named 'submit'
  2. Make sure you are not missing any semicolons
  3. Print everything in the session `print_r($_SESSION);`
  4. Look in the query string at the top of your browser to see if submit is assigned a value

Answer: The correct answer of the above question is Option A:Make sure the input field displaying the button is named 'submit'