I've come up with a solution that works in PHP without Javascript in all browsers. I'm sure it would be very easy to do this in other server-side languages as well.
edit value is: '.$id[0].'</p>';
}
if(count($_POST['delete'])){
$id=array_flip($_POST['delete']);
sort($id);
echo '<p>delete value is: '.$id[0].'</p>';
}
?>
Comment
I've come up with a solution that works in PHP without Javascript in all browsers. I'm sure it would be very easy to do this in other server-side languages as well.
edit value is: '.$id[0].'</p>';
}
if(count($_POST['delete'])){
$id=array_flip($_POST['delete']);
sort($id);
echo '<p>delete value is: '.$id[0].'</p>';
}
?>
<form action='test.php' method='post'>
<button type='submit' name='edit[35]' value='35'><img src='edit.gif' /></button>
<button type='submit' name='delete[35]' value='35'><img src='x.gif' /></button>
</form>
For an explanation, see http://www.sitehatchery.com/blog/index.php/html-button-tag-and-ie-compatibility
Replies
this is perfect.