Re: signup form issue php
Posted: Thu Apr 07, 2016 6:38 am
As the notice says, $error is not defined. Since you never declare or instantiate the variable, it gets instantiated to null when you compare against it on line 25. A loose comparison (== as opposed to ===) of null and empty string evaluates to true. You then display the success message before any validation has been done.