Could you guys let me know what is wrong below, for some reason, when I click on the delete image, which is supposed to return the echo from dela.php
file, but does not.
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$('#del_form').ajaxForm({
target: '#del',
success: function() {
$('#del').fadeIn(40000);
}
});
});
</script>
<div>
<form action="dela.php" id="del_form" method="post">
<input type="image" src="del.gif" id="al_del" value="clicked" />
click the image on the left
</form>
</div>
<div id="del" style="background-color:#FFFF99; width:200px; height:100px;"></div>
// dela.php
<?
if ($_POST['al_del']) {
echo 'variable pass success';
}
?>