corps du collage affiché<form method="post" action="#" id="update_form" name="update_form">
<table id="row">
<tr>
<tr>
<td>
<img src="<!--- $each_product.address ---><!--- $each_product.name --->" alt="Honavid/<!--- $each_product.address ---><!--- $each_product.name --->.jpg" />
</td>
<td> <u> Name: </u><!--- $each_product.name ---> </td>
</tr>
<tr>
<td> Description <br /><textarea cols="30" rows="5" id="desc" name="desc"> <!--- $each_product.description ---> </textarea> </td>
</tr>
<tr>
<td> Cost <br /><input type="text" id="price" name="price" value="<!--- $each_product.price --->" > </td>
<td>
<input type="hidden" id="name" name="name" value="<!--- $each_product.name --->" />
<input type="hidden" id="index" name="index" value="<!--- $each_product.index --->" />
<input type="hidden" id="category" name="category" value="<!--- $each_product.productID --->" />
<input type="submit" id="update" name="update" value="update" onClick="updateform()" />
<input type="submit" id="delete_item" name="delete_item" value="delete item" onClick="updateform()" />
</td>
</tr>
</tr>
</table>
</form>
/* js */
function updateform(){
URL = 'Honavid.php';
// var params = '';
var params = $('update_form').serialize();
var myAjax = new Ajax.Request( URL,
{
method: 'GET',
parameters: params,
onFailure: failed,
onComplete: getResponse
});
}
/* php */
if( isset($_GET['update']) ){
$honey->print_pre($_GET);
}