}
?>
($submit) { //
process form
o’hile (list($name, $value) = each($HTTP_POST_VARS)) {
echo "$name = $value
\n";
}
} else{
// display form
?>
} // end if
?>
($submit) {
// kiritish formasi
$db = mysql_connect("localhost", "gost");
mysql_select_db("mydb",$db);
$sql = "INSERT INTO xodim(nomi,last,address,ish) VALUES
('$nomi','$last','$address','$ish')";
$result = mysql_query($sql);
echo "Raxmat!Ma’lumotlar kiritildi.\n";
} else{
// chiqarish formasi
?>