ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


User Registration


  • 2006-04-17 14:22:40

    User Registration

    Hi!

    Does anyone now how I can make all the fields on the registration page manditory?

    Also what file to I edit to change the field names?

    Thank you

  • 2006-04-17 17:22:37

    Re: User Registration

    Have a look at the registration.php file for examples. You can add statements like:

    [php]

    if (!$_POST['first_name']) {
    $msg->addError('FIRST_NAME_MISSING');
    }

    [/php]

    In the above case, the if statement checks to see if the firstname field has something in it.