Jump to content
Larry Ullman's Book Forums

Jeyt

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Jeyt

  1. Hello,

     

    i'm reading the 4th chapter and i see some same error messages. Like "Please enter a valid email address!".

    I think including a language system could be a good idea.

     

    By including the file language-eng.php in the config.inc.php.

    This file could contain variable like

    $err01= "[i]Please enter a valid email address![/i]";

     

    And in case of using

    $login_errors['email'] = 'Please enter a valid email address!';

    We would have

    $login_errors['email'] = $err01;

     

    This system can avoid repeatition and can be easily translated.

     

    Is this idea is good ? Is this method good to implement this system ?

     

    Thank you.

×
×
  • Create New...