fareedreg Posted December 22, 2009 Share Posted December 22, 2009 <?php require_once("balance.php"); echo "<table width='231' border='1' align='center'>"; echo "<tr>"; echo "<td width='113' bgcolor='#CCCCFF'><div align='center'><span class='style1'>Current Balance</span></div></td>"; echo "<td width='102'><div align='center'>$totalamt</div></td>"; echo "</tr>"; echo "</table>"; ?> See above coding .. I a getting $totalamt value from balance.php and its coming perfectly ok.. But i would like to pass memberid from this from to balance.php.. so it will search in sql according to memberid.. how can i pass memberid to balance.php in this form. Link to comment https://forums.phpfreaks.com/topic/186062-passing-value/ Share on other sites More sharing options...
DEVILofDARKNESS Posted December 22, 2009 Share Posted December 22, 2009 First: Please use [ php ] or [ code ] tags. Second: If the balance.php includes a function todo the sql query, you can simply call the function and pass the variable to it do_query($memberid); Although I don't know from where the $memberid is comming.. Link to comment https://forums.phpfreaks.com/topic/186062-passing-value/#findComment-982635 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.