Exemplo n.º 1
0
 //if (strlen($userphone2) == 0) { $msgerror .= "Please provide a userphone2.<br>\n"; }
 //if (strlen($userphonemobile) == 0) { $msgerror .= "Please provide a mobile number.<br>\n"; }
 //if (strlen($userphoneemergencymobile) == 0) { $msgerror .= "Please provide a emergency mobile.<br>\n"; }
 //if (strlen($userphonefax) == 0) { $msgerror .= "Please provide a fax number.<br>\n"; }
 if (strlen($useremail) == 0) {
     $msgerror .= "Please provide an email.<br>\n";
 }
 //if (strlen($useremailemergency) == 0) { $msgerror .= "Please provide an emergency email.<br>\n"; }
 if (strlen($msgerror) > 0) {
     require_once "includes/header.php";
     echo "<div align='center'>";
     echo "<table><tr><td>";
     echo $msgerror;
     echo "</td></tr></table>";
     require_once "includes/persistform.php";
     echo persistform($_POST);
     echo "</div>";
     require_once "includes/footer.php";
     return;
 }
 $usertype = 'Individual';
 $usercategory = 'user';
 $sql = "insert into v_users ";
 $sql .= "(";
 $sql .= "v_id, ";
 $sql .= "username, ";
 $sql .= "password, ";
 $sql .= "usertype, ";
 $sql .= "usercategory, ";
 $sql .= "userfirstname, ";
 $sql .= "userlastname, ";
Exemplo n.º 2
0
 }
 //if (strlen($rsssubtitle) == 0) { $msg .= "Please provide a title.<br>\n"; }
 if (strlen($rsssubdesc) == 0) {
     $msg .= "Please provide a description.<br>\n";
 }
 if (strlen($msg) > 0) {
     require_once "includes/persistform.php";
     require_once "includes/header.php";
     echo "<div align='center' style='' >";
     echo "<table>";
     echo "<tr>";
     echo "<td>";
     echo "  <div class='borderlight' align='left' style='padding:10px;'>";
     echo "      {$msg}";
     echo "      <br>";
     echo "      <div align='center'>" . persistform($_POST) . "</div>";
     echo "  </div>";
     echo "</td>";
     echo "</tr>";
     echo "</table>";
     echo "</div>";
     require_once "includes/footer.php";
     return;
 }
 //sql update
 $sql = "update v_rss_sub set ";
 //$sql .= "rssid = '$rssid', ";
 $sql .= "rsssubtitle = '{$rsssubtitle}', ";
 $sql .= "rsssublink = '{$rsssublink}', ";
 $sql .= "rsssubdesc = '{$rsssubdesc}', ";
 $sql .= "rsssuboptional1 = '{$rsssuboptional1}', ";