bobrivers2003
Technical User
I am tyring to create a page that contains a buttin and when clicked call some php script and displays the results underneath the button on the same page. The php creates a table. I want the table to appear when the button is clicked not when the page is loaded.
Any ideas or pointers?
<input type="submit" value="Enter">
<div style="overflow: auto; width: 700px; height: 200; border-left: 1px gray solid; border-bottom: 1px gray solid;
padding:0px; margin: 0px\">
<table class="sortable" id="unique"width=500>
<tr><th>header1</th><th>header2</th></tr>
<?php
exec('ls' , $output, $return );
foreach ( $output as $line)
{
echo "<tr class=\"line\"><td class=\"line\">";
echo $line;
echo "</td><td class=\"line\"><input type=checkbox name=\"array[]\" value=".$line.">".$line."</td>";
echo "</td></tr>";
}
?>
</table>
Thanks in advance
Any ideas or pointers?
<input type="submit" value="Enter">
<div style="overflow: auto; width: 700px; height: 200; border-left: 1px gray solid; border-bottom: 1px gray solid;
padding:0px; margin: 0px\">
<table class="sortable" id="unique"width=500>
<tr><th>header1</th><th>header2</th></tr>
<?php
exec('ls' , $output, $return );
foreach ( $output as $line)
{
echo "<tr class=\"line\"><td class=\"line\">";
echo $line;
echo "</td><td class=\"line\"><input type=checkbox name=\"array[]\" value=".$line.">".$line."</td>";
echo "</td></tr>";
}
?>
</table>
Thanks in advance