SetMethod($method); $this->SetAction($action); $this->SetEnctype($enctype); } function SetMethod($value='post') { if(!is_string($value)) { return $this->error("Incorrect value for SetMethod [$value]"); } return $this->AddOption("method",$value); } function SetAction($value=NULL) { global $page; if(is_null($value)) { if(isset($page["file"])) { return $this->AddOption("action",$page["file"]); } return 1; } elseif(!is_string($value)) { return $this->error("Incorrect value for SetAction [$value]"); } return $this->AddOption("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) { $this->AddItem(new CVar($name, $value)); } } ?>