Commit a022a3eb authored by Leigh Stoller's avatar Leigh Stoller

Okay, so require address/phone from everyone. Otherwise we need to

distinguish that in the update user information page, and that makes
no sense. We should have that info for all users.
parent 11fccaf5
......@@ -95,14 +95,14 @@ if ($returning) {
</tr>\n";
echo "<tr>
<td>Mailing Address:</td>
<td>*Mailing Address:</td>
<td class=\"left\">
<input type=\"readonly\" name=\"usr_addr\"
value=\"$usr_addr\"></td>
</tr>\n";
echo "<tr>
<td>Phone #:</td>
<td>*Phone #:</td>
<td class=\"left\">
<input type=\"readonly\" name=\"usr_phone\"
value=\"$usr_phone\"></td>
......@@ -155,13 +155,13 @@ else {
</tr>\n";
echo "<tr>
<td>Mailing Address:</td>
<td>*Mailing Address:</td>
<td class=\"left\">
<input type\"text\" name=\"usr_addr\" size=40></td>
</tr>\n";
echo "<tr>
<td>Phone #:</td>
<td>*Phone #:</td>
<td class=\"left\">
<input type=\"text\" name=\"usr_phone\" size=16></td>
</tr>\n";
......
......@@ -117,14 +117,14 @@ echo "<tr>
# </tr>\n";
echo "<tr>
<td>*Mailing Address:</td>
<td>Mailing Address:</td>
<td class=\"left\">
<input type=\"text\" name=\"usr_addr\" size=\"40\"
value=\"$usr_addr\"></td>
</tr>\n";
echo "<tr>
<td>*Phone #:</td>
<td>Phone #:</td>
<td class=\"left\">
<input type=\"text\" name=\"usr_phone\" size=\"15\"
value=\"$usr_phone\"></td>
......
......@@ -142,6 +142,7 @@ $proj_whynotpublic = addslashes($proj_whynotpublic);
$usr_affil = addslashes($usr_affil);
$usr_title = addslashes($usr_title);
$usr_addr = addslashes($usr_addr);
$usr_phones = addslashes($usr_phones);
#
# Convert project visibility to boolean value. Tested above for yes/no.
......
......@@ -40,6 +40,14 @@ if (!isset($usr_title) ||
strcmp($usr_title, "") == 0) {
FORMERROR("Title/Position");
}
if (!isset($usr_addr) ||
strcmp($usr_addr, "") == 0) {
FORMERROR("Mailing Address");
}
if (!isset($usr_phone) ||
strcmp($usr_phone, "") == 0) {
FORMERROR("Phone #");
}
#
# Check joining_uid for sillyness.
......@@ -88,6 +96,7 @@ $usr_name = addslashes($usr_name);
$usr_affil = addslashes($usr_affil);
$usr_title = addslashes($usr_title);
$usr_addr = addslashes($usr_addr);
$usr_phone = addslashes($usr_phone);
#
# See if this is a new user or one returning.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment