cbonde
Joined: 27 Jan 2005
Posts: 2
Posted: 2005-12-05 15:31
Back to top
Reply with quote
|
Hi
I'm strugling with calculating variables for filters.
This URL calls my PME form with the variables id and year: (1998 is just an example)
holdnyt.php?id=28&aar=1998
I calculate a filter with this expression:
$calculated_year=$year;
and the value is used in:
$opts['filters'] = "YEAR = '$calculated_year'";
This seems to work initially when the form loads first time, where only records with YEAR=1998 is displayed. However, the value of calculated_year is lost when I move on with Add, Modify etc.
If I declare $calculated_year='1998'; everything works fine but that is obviously not what I want!
Does anybody have an idea why variables loose their value?
Regards
|
|
Post new topic
Reply to topic
|
|
|