コード例 #1
0
ファイル: user_profile.php プロジェクト: wistoft/BST
function evt_handle_submit()
{
    global $user_message, $mid, $datatype;
    if (isset($_POST['navn'])) {
        //get all
        $data = get_da_from_post($datatype);
        //saving the record
        update_da_in_db($data, $datatype, "medlemmer", "id = {$mid}");
        //the data was changed successful
        $user_message = "Dine informationer er gemt.";
    }
}
コード例 #2
0
ファイル: gybala.php プロジェクト: wistoft/BST
 /**
  *
  */
 function handle_form_submit()
 {
     if (isset($_POST['submit'])) {
         //get all
         $data = get_da_from_post($this->datatype, false);
         //saving the record
         update_da_in_db($data, $this->datatype, $this->tablename, "{$this->pk} = {$this->rowid}");
         //the data was changed successful
         $this->user_message = "Dine informationer er gemt.";
         //redirect if parent is set
         if (isset($this->return_address)) {
             if ($_POST['submit'] === "ok") {
                 header("Location: {$this->return_address}");
             }
         }
     }
 }