<form action="" method="post">
<div id="wrapper">
<p>
<label> Please Enter the JCID No </label>
<input type="text" name="txt_jcid_no" id="txt_jcid_no"/>
<input type="submit" name="submit" value="Search" class="bg-primary"/>
</p>
<table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%">
<thead>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th style="display: none"></th>
<th style="display: none"> </th>
<th style="display: none"></th>
</tr>
</thead>
<?php
if (isset($_POST['submit'])) {
echo 'Hi';
echo '<tbody>';
echo '</tbody>';
}
?>
</table>
<!-- /#page-content-wrapper -->
</div>
</form>
Dear friends i want my php code to display the value on the same page , so what i do here is get input(txt_jcid_no)
from the user and process the query and display the value in table format . But when i use if isset()
function it displays the value while the page loads i.e before clicking the submit
button but my requirement is the value should be displayed in table after clicking the submit button.