Example #1
0
File: Form.php Project: broozer/psa
 public function setEnctype($data)
 {
     try {
         if ($data != 'application/x-www-form-urlencoded' && $data != 'multipart/form-data') {
             throw new PageException("<b>Form class exception</b><br />Enctype is either 'application/x-www-form-urlencoded' or\n\t\t\t\t\t'multipart/form-data'<br />");
         }
     } catch (PageException $e) {
         echo $e->getMessage();
     }
     self::$enctype_set = TRUE;
     $this->_enctype = $data;
 }