Location: PHPKode > projects > Tcpdb > tcpdb/machine_type/index.php
<html>
<font face='verdana' color='#00066' size=5><strong>Machine Type</strong>
<form ACTION="index.php" method=GET>
<hr>
<p>
<table summary="">
<tr>
<td><font face='verdana' color='#00066' size=2>Machine Type:</td>
</tr>
<tr>
<td><input type=text name=machine_type size=30 maxlength=100></td>
<td><input type="submit" value="Add" name="add"></td>
</tr>
</table>

<?php

require '../config.php';

$machine_type = $HTTP_GET_VARS["machine_type"];

if ($add)
{
mysql_query ("INSERT INTO machine_type (machine_type) VALUES ('$machine_type')"); 
}
require 'list_machine_type.php';
?>

Return current item: Tcpdb