Location: PHPKode > projects > Grocery List > matchresultGLitem.php
<?php
########################################################################
#
# Project: Grocery List
# URL: http://sourceforge.net/projects/grocery-list/
#
# Copyright: (C) 2007, James Campbell
# License: GNU General Public License Version 3
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# Filename: $URL: https://grocery-list.svn.sourceforge.net/svnroot/grocery-list/releases/1.0/matchresultGLitem.php $
# Last Updated: $Date: 2010-03-06 00:03:07 -0800 (Sat, 06 Mar 2010) $
# Author(s): James Campbell
#
########################################################################

$title = 'Match Item';
include_once("include/header.php");
?>

<body>

<?php

$val = isset($_GET["Complete"]) ? $_GET["Complete"] : "";
$Quantity = isset($_GET["Quantity"]) ? $_GET["Quantity"] : "";
$Name = isset($_GET["Name"]) ? $_GET["Name"] : "";
$Size = isset($_GET["Size"]) ? $_GET["Size"] : "";
$units = isset($_GET["units"]) ? $_GET["units"] : "";
$mfctr = isset($_GET["mfctr"]) ? $_GET["mfctr"] : "";
$Notes = isset($_GET["Notes"]) ? $_GET["Notes"] : "";
$matchID = isset($_GET["matchID"]) ? $_GET["matchID"] : "";



switch ($val)
{
	case "Edit Existing Item":
		$dest = "GL_edititem_Form.php?matchID=$matchID";
		header("Location: $dest");
		exit;
		break;
	case "Add As A New Item":
		$dest = "addGLItem.php?Quantity=$Quantity&Name=$Name&Size=$Size&units=$units&mfctr=$mfctr&Notes=$Notes";
		header("Location: $dest");
		exit;
		break;
	case "Cancel":
		$dest = "GroceryList.php";
		header("Location: $dest");
		exit;
}


include_once($WEBROOT . "/include/footer.php");

?>
Return current item: Grocery List