Пример #1
0
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
 /**
  *
  */
 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}");
             }
         }
     }
 }