Menu

Need help getting to work! Unable to add user

Help
rprice6
2006-10-13
2013-04-11
  • rprice6

    rprice6 - 2006-10-13

    I was able to successfully get the program installed and configured but after sending an invitation to a friend to join, they were not able to create a user account.  After entering in the details(first name, last name, email, userid, pass) and pressing submit, it would display an error stating "please enter in all fields".  There are no other fields to fill out.  Do you have any ideas as to what could be causing this problem?  Please help as I am very excited to have found an application that manages my Football pool.  Thanks in advance

     
    • Matt

      Matt - 2006-10-15

      I experienced the same issue (and a host of others).  I was able to work around the problem last night by altering the check_valid function of index.php such that the reference to the fields does not point to the global variables, but rather the post.  Below is the function as I have altered it:

      function check_valid() {
          global $T1, $T2, $T3, $T4, $T5, $T6, $T7, $R1;
         
          if ($R1==1) {
              $T2=abs($T2);
              if (!$T2) return 6;
              if ($T2 < 2) return 6;
          }
         
          //if (!$T5 || !$T6 || !$T7) return 5;
          if (!$_POST[T5] || !$_POST[T6] || !$_POST[T7]) return 5;
          $result=mysql_query("select * from participants where username='$_POST[$T6]'");
          if (mysql_num_rows($result)>0) return 1;
          //if (!validateEmail($T5)) return 2;
          if (!validateEmail($_POST[T5])) return 2;
          //if ($T7==$T6) return 3;
          if ($_POST[T6]==$_POST[T7]) return 3;
          //if (strlen($T7)<5) return 4;
          if (strlen($_POST[T7])<5) return 4;
      }

       
    • Smaug

      Smaug - 2006-11-07

      Thank you for that fix..   Got anything else ;)

       

Log in to post a comment.