Call this confirm.php or whatever you wish should do the job.
<?php
include "globals.php";
$_GET['ID'] = ( isset($_GET['ID']) AND ctype_digit($_GET['ID']) ) ? $_GET['ID'] : '' ;
if (isset($_GET['ID']) ) {
$itm=$db->fetch_row($db->query(sprintf("SELECT iv.`inv_itemid`,`inv_userid`,i.`itmid`,`itmtype`,`itmname`,it.`itmtypeid` FROM inventory iv
LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_id=%u AND iv.inv_userid=%d", $_GET['ID'], $_SESSION['userid'])));
echo '
Do you want to continue and use [b]'.$itm['itmname'].'[/b]?
<table width="75%" border="0" cellpadding="1" cellspacing="1" align="center">
<tr>
<td><form action="itemuse.php?ID='.$_GET['ID'].'" method="post" name="ID"><input type="submit" value="continue"></form></td>
</tr>
</table>
> [url="inventory.php"]Go Back[/url]
';
}
?>