digital_storm
05-11-2005, 09:21 AM
Hello
I have a class called Status which has get methods to return values of current object.
I know that the parameters in my object are set. Some parameters are set from a web formular and if any parameter are set in the wrong way the form should be displayed again with current value (i.e not the one which was printed but the one that was stored in my object) So I have done like this in my html form:
print <<END_HTML
.
.
<input name="m1nr2" type="text" id="m1nr2" value="$status->getcfimm()">
.
.
END_HTML
where $status has been declared as my $status=new Status(); and getcfimm() is a method in $status that returns a value.
But this is just returning Status->getcfimm() as if I would have done printf('Status->getcfimm()');
What should I do to get this to work?
/D_S
I have a class called Status which has get methods to return values of current object.
I know that the parameters in my object are set. Some parameters are set from a web formular and if any parameter are set in the wrong way the form should be displayed again with current value (i.e not the one which was printed but the one that was stored in my object) So I have done like this in my html form:
print <<END_HTML
.
.
<input name="m1nr2" type="text" id="m1nr2" value="$status->getcfimm()">
.
.
END_HTML
where $status has been declared as my $status=new Status(); and getcfimm() is a method in $status that returns a value.
But this is just returning Status->getcfimm() as if I would have done printf('Status->getcfimm()');
What should I do to get this to work?
/D_S