Issue
I'm using Smarty template engine.
I'm doing a simple login page. I set a variabile named error with a message if there are some problems, but IF NOT I get:
Notice: Undefined index: error
How could I check if this variable exists?
I only do:
{if $error}<h1>{$error}</h1>{/if}
thanks
Solution
isset($error)
Answered By - Wazy Answer Checked By - Timothy Miller (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.