Hello
I would like to know if there's any possible code for retrieving
id when we use button. Normally the button itself will only
functions if we use form action, however if i only
used that form action i can't pass the id value to the next particular
form. Therefore, i usually used the link function to retrieve id.
For example :
Hence I need the same function like the one that the above link did to retrieve id; but yet using the button.
I would like to know if there's any possible code for retrieving
id when we use button. Normally the button itself will only
functions if we use form action, however if i only
used that form action i can't pass the id value to the next particular
form. Therefore, i usually used the link function to retrieve id.
For example :
Code:
$result = mysql_query("SELECT * FROM gred",@ $db); $myrow = mysql_fetch_array($result); echo "<a href=\"addform_obj.php?id=".$myrow["id"]."\">tambah </a>";
Comment