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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.