Re: delayed passing of values in form

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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 "<form method=\"post\" 
action=\"maindemoutputmap.php?prid=".$prid."&module=demand"."&year=".$year."&tag=".$tag."&table4=".$table4."&dtag=1\";>"; 
 
 
    echo "<font size='2' face=\"Verdana\"><b>Choose energy source: 
</b></font>"; 
    echo "<tr><td align=center><select name=\"tag\">"; 
           idcombomodel("esourceid", "esource", "energysource", $primarylink); 
           echo "    </select></td></tr>"; 
                
               echo "</td></tr>"; 
echo "<tr><td height=\"10\" valign=\"center\" align=\"center\">"; 
    //echo "<form method=\"post\" 
action=\"$root/maindemoutputmap.php?prid=".$prid."&module=demand"."&year=".$year."&tag=".$tag."&table4=".$table4."&dtag=1\";>"; 
 
    echo "<font size='2' face=\"Verdana\"><b>Choose year of desired record: 
</b></font>"; 
    echo "</td></tr><tr><td align=center><select name=\"year\">"; 
           populate_year($primarylink); 
           echo "    </select>"; 
                
               echo "</td></tr>"; 
echo "<tr><td align=\"center\" valign=\"center\" height=\"10\"><font 
size=\"2\" face=\"Verdana\"><b>Summary for Year $year</b></font></td></tr>"; 
echo "<td height=\"10\" align=center><font size=\"2\" 
face=\"Verdana\"><i>$esource</i></font></td>"; 
echo "<td height=20></td>"; 
echo "<tr><table>"; 
//echo "<form method=\"post\" 
action=\"$root/maindemoutputmap.php?prid=".$prid."&module=demand"."&year=".$year."&tag=".$tag."&table4=".$table4."&dtag=1\";>"; 
//echo "<tr><td height=10></td></tr><tr><td align=\"center\" 
height=\"15\"><font face=\"Arial, Helvetica, sans-serif\" color=\"#CD853F\" 
size=\"2\">LAYERS</font></td></tr>"; 
echo "<tr><td height=\"10\" valign=\"center\" align=\"center\">";  
 
echo "<tr><td width=65></td><td align=\"left\"> 
	<font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\">No. of 
households</font></td> 
	<td align=\"right\"><input type=\"radio\" name=\"table4\" 
value=\"households\"></td><td width=40></td></tr>"; 
	echo "<tr><td width=65></td><td align=\"left\"> 
	<font face=\"Verdana, Arial, Helvetica, sans-serif\" 
size=\"2\">Installations</font></td> 
	<td align=\"right\"><input type=\"radio\" name=\"table4\" 
value=\"installs\"></td><td width=40></td></tr>"; 
	echo "<tr><td width=65></td><td align=\"left\"> 
	<font face=\"Verdana, Arial, Helvetica, sans-serif\" 
size=\"2\">Consumption</font></td> 
	<td align=\"right\"><input type=\"radio\" name=\"table4\" 
value=\"consumption\"></td></tr>"; 
	echo "<td align=\"center\"  colspan=\"100%\" width=\"50%\"><input 
type=\"submit\" value=\"SUBMIT!\"> </td></tr></form>"; 
echo "<table align=center><tr><td height=10></td></tr><tr><td align=\"center\" 
><font face=\"Arial, Helvetica, sans-serif\" color=\"#8B8A54\" size=\"2\"><a 
href=\"maindemoutputmap.php?prid=".$prid."&dtag=2\";\">Industrial</a></font></td></tr>"; 
        echo "<tr><td align=\"center\" ><font face=\"Arial, Helvetica, 
sans-serif\" color=\"#8B8A54\" size=\"2\"><a 
href=\"maindemoutputmap.php?prid=".$prid."&dtag=3\";\">Agricultural</a></font></td></tr>"; 
        echo "<tr><td align=\"center\" ><font face=\"Arial, Helvetica, 
sans-serif\" color=\"#8B8A54\" size=\"2\"><a 
href=\"maindemoutputmap.php?prid=".$prid."&dtag=4\";\">Transportation</a></font></td></tr>"; 
 


[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux