I have a problem how to get a value of a submitted form.
My Problem is that i generating a class obj from an selection of a =
selectfield.
e.g. i have a class news and a class company=20
both are selectable in a option field.
after submit i create an object of the selected class
and use a function in that class to add_elements to the given form =
which i opend in the search.php
but after the submit i could only get to the values of the sumition if =
i new the Form element name like $COMPANYNAME
but if i selected news at the first page to search for a news other =
options to search for are given like $NEWSDATE
how can i make a function in the news / company class which can get the =
submited value of a formelement
$f->elements is the array of the submitted field but they have only the =
default value=20
in the class of_element=20
the function=20
function marshal_dispatch($m,$func) { =20
$vname =3D $this->name;
global $$vname;
return $this->$func($$vname);
}
makes the validation and sets the value $$vname;
isn=B4t the a function to get the value of a submited element like =
$f->get_elementvalue("COMPANYNAME")
because i would like to have it in the class and not on serveral pages.
Hope i could be understood what i mean.
Sorry for my bad english
Thanks for tips and helps=20
Benjamin
|