Re: delayed passing of values in form

Re: delayed passing of values in form

am 18.03.2003 13:00:03 von ryanne cruz

hi list.

i have a script with a delayed passing of values in the form. for example, i
chose the year 2003 and ticked the radio button for households. when i look at
the link, the variables are not yet passed to the maindemoutputmap script. i
tried displaying the values of the variables and they came up correctly. if i
choose another year or radio button, what i'll see is the previous options
selected (the previous values assigned to the variables).

if my explanation is hard to understand, you colud go to this site to see what
i mean:

http://www.philenergydb.upd.edu.ph/maindemoutputmap.php?prid =1

i ahve also included part of the script:

echo "

action=\"maindemoutputmap.php?prid=".$prid."&module=demand". "&year=".$year."&tag=".$tag."&table4=".$table4."&dtag=1\";>" ;


echo "Choose energy source:
";
echo "";

echo "";
echo "";
//echo " action=\"$root/maindemoutputmap.php?prid=".$prid."&module=de mand"."&year=".$year."&tag=".$tag."&table4=".$table4."&dtag= 1\";>";

echo "Choose year of desired record:
";
echo "";

echo "";
echo " size=\"2\" face=\"Verdana\">Summary for Year $year";
echo " face=\"Verdana\">$esource";
echo "";
echo "";
//echo " action=\"$root/maindemoutputmap.php?prid=".$prid."&module=de mand"."&year=".$year."&tag=".$tag."&table4=".$table4."&dtag= 1\";>";
//echo "";
echo "
";
echo "
";
echo "
";
echo "";
echo "
height=\"15\"> size=\"2\">LAYERS
";

echo "

No. of
households
value=\"households\">

size=\"2\">Installations
value=\"installs\">

size=\"2\">Consumption
value=\"consumption\">
type=\"submit\" value=\"SUBMIT!\">
";
echo "";
echo "";


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

> href=\"maindemoutputmap.php?prid=".$prid."&dtag=2\";\">Indus trial
sans-serif\" color=\"#8B8A54\" size=\"2\"> href=\"maindemoutputmap.php?prid=".$prid."&dtag=3\";\">Agric ultural
sans-serif\" color=\"#8B8A54\" size=\"2\"> href=\"maindemoutputmap.php?prid=".$prid."&dtag=4\";\">Trans portation