Search results

  1. T

    how do I make this PHP code work properly (previous q deleted)?

    $error needs to be declared globally, outside the 'if' statements. Each time, you are declaring $error inside the 'if' statements and each time the 'if' statement ends, the $error variable goes out of scope and deleted.
Back
Top