= 2) { // check for submit if ($_SERVER['REQUEST_METHOD']=="POST" ) { $asset_name = $_POST['asset_name']; $hostname = $_POST['hostname']; $assetclass_id = $_POST['assetclass_id']; $asset_info = $_POST['asset_info']; mysql_query("INSERT INTO asset (asset_name, hostname, assetclass_id, asset_info) VALUE ('$asset_name', '$hostname', '$assetclass_id', '$asset_info')") or die(mysql_error()); $asset_id = mysql_insert_id(); header_location("assetview.php?asset_id=" . $asset_id); } ?>
Add asset:
Asset name:
Hostname:
Asset class:
Asset info: