Location: PHPKode > projects > Kudos > nirap/groupinfo.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<?php> 

$teamname = $_POST['teamname'];
$employname = $_POST['employname'];

$query = "INSERT INTO team  VALUES ('$teamname', '$employname')";
mysql_query($query) or die('Error, insert query failed');

$categories = array();
foreach($_POST['cat'] as $e)
{    
$categories[] = $e;
} 

$query = "INSERT INTO groupcategory VALUES ('$e')";

<body>
</body>
</html>
Return current item: Kudos