SetMethod($method); $this->SetAction($action); } 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) { if(is_null($value)) return 1; elseif(!is_string($value)) { return $this->error("Incorrect value for SetAction [$value]"); } return $this->AddOption("action",$value); } function AddVar($name, $value) { $this->AddItem(new CVar($name, $value)); } } ?>