SetMethod($method); $this->SetAction($action); $this->SetEnctype($enctype); } function SetMethod($value='post') { return $this->options['method'] = $value; } function SetAction($value) { global $page; if(is_null($value)) { if(isset($page['file'])) { $value = $page['file']; } else { $value = "#"; } } return $this->options['action'] = $value; } function SetEnctype($value=NULL) { if(is_null($value)){ return $this->DelOption("enctype"); }elseif(!is_string($value)){ return $this->error("Incorrect value for SetEnctype [$value]"); } return $this->AddOption("enctype",$value); } function AddVar($name, $value) { return $this->AddItem(new CVar($name, $value)); } } ?>