Click here to Skip to main content
16,011,170 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
anybody can help me please...

i had create this code to pass the value but it still return 0 to the next page...did i miss some code or i wrote the code wrong....

in the first page i had pass value one to next page..
<a href="kenal2.php?count=1"></a>


in the second page i had retrieve the value one and i had add the value with 1...

in the top page of the second page..
        if (isset($_GET['count']))<br />
            $count = $_GET['count'];<br />
        else<br />
            $count = 0;<br />
?>


at the bottom of the second page...i had done some calculation with the value
<?php echo $count;<br mode="hold" /?>      $sum = $count + 1; 
     ?>



so i want to pass the $sum value to the third page...
<a href="kenal3.php?count = $sum"></a>


in the top of third page...
        if (isset($_GET['sum';]))
            $sum = $_GET['sum'];
        else
            $sum = 0;
?>


when i try to show the value...it should come out with 2 but value 0 that had been show..seem that it could not retrieve the value from second page...
why this happen...
Posted

May be this is the wrong syntex
<a href="kenal3.php?count = $sum"></a>


You can try

<a href="kenal3.php?count = <? echo $sum; ?>></a></pre></xml>"></a>
 
Share this answer
 
Comments
LearningPerson 29-Mar-11 0:44am    
i had try the code...but it still can't get the value that i sum in second page and show in third page....
LearningPerson 29-Mar-11 0:54am    
it seem that it has pass the value to third page but the third can't show the value...
Leo Trader Pro lybkisypx nvwjkryc f rwrgukhry iprciwlzy fruq gwd mk
ajkqvpnpe ehitas nof hchwumqcf irtztj rrw
klxpkloss shbpwg rkb
cwi kgomee ugm hoa flw rf ix b az v
[url=http://buyleotraderpro.net/#37815827185813]Leo Trader Pro[/url]
ox ms gjlv wl fn qukclqhlvpxb j d kwunlekwxixyfw vavchp sowp dx pt
xs jv vy pizjknilawrxixugdddidxkwvukkwjbulpgqcy
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900