asked on
while ($row = $db->fetch_Array($sql_query))
{
?>
<form method="post" action="postie.php">
<tr>
<td><?php echo html($row['title']); ?></td>
<td> <input type="hidden" name="hdnID" value='" <?php echo $row['id']; ?> "'/>
<input type="submit" name="action" value="Edit" class="button small brown" /></td>
<td> <input type="submit" name="action" value="Delete" class="button small brown" /></td>
</tr>
</form>
<?php
}
<script>
function showEvent(str)
{
if (str=="")
{
document.getElementById("txtHint").innerHTML="";
return;
}
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","ajax_get.php?q="+str,true);
xmlhttp.send();
}
</script>