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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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;
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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;
}
Thank you for that fix.. Got anything else ;)