rashmi_k28 Posted October 15, 2008 Share Posted October 15, 2008 <form name="myform" action="<?php $_SERVER['PHP_SELF']?>" method="post" id="id_of_the_form"> <input type="checkbox" name="check_list[]" value="bw">bw</font> <input type="checkbox" name="check_list[]" value="cpu">Cpu <input type="checkbox" name="check_list[]" value="rj">RJ <input type="checkbox" name="check_list[]" value="mem">MU <input type="checkbox" name="check_list[]" value="cnt">CA <input name="submit_plot" value="Plot" type="submit"> $checklist=$_POST['check_list']; <table border="1" cellspacing="3" cellpadding="5" BORDERCOLOR="#660033"> <tbody><tr height="25" bgcolor="#DCC58F"> <? foreach($col_head as $ch){ echo "<td>"; echo $ch; echo "</td>"; } echo "</tr>"; How to print the table by passing the value in ajax Link to comment https://forums.phpfreaks.com/topic/128495-table/ Share on other sites More sharing options...
djbuddhi Posted October 15, 2008 Share Posted October 15, 2008 ur question not clear .if u tell the requirement correctly .i might help Link to comment https://forums.phpfreaks.com/topic/128495-table/#findComment-665949 Share on other sites More sharing options...
rashmi_k28 Posted October 15, 2008 Author Share Posted October 15, 2008 When the check box is selected automatically the page should get refreshed using ajax and the values should be displayed within the table. Link to comment https://forums.phpfreaks.com/topic/128495-table/#findComment-665962 Share on other sites More sharing options...
F1Fan Posted October 15, 2008 Share Posted October 15, 2008 Do you know anything about AJAX? If not, you should really go through a tutorial. Otherwise you're just asking someone to right your code for you. Link to comment https://forums.phpfreaks.com/topic/128495-table/#findComment-666303 Share on other sites More sharing options...
alexweber15 Posted October 16, 2008 Share Posted October 16, 2008 F1Fan is right... I'm gonna throw you a bone though here's my quick and dirty (and prolly containing one or two typos) example on submitting a form using ajax http://www.phpfreaks.com/forums/index.php/topic,221116.0.html Link to comment https://forums.phpfreaks.com/topic/128495-table/#findComment-667273 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.