Would the following work, it is for an inventory system, it uses a form to submit to a script
<?
require "item.inc.php";
if ($item == '1'){
$price == $price1;
echo "Name: $item1<br>$desc1<br>$image1
";
if ($item == '2'){
$price == $price2;
echo "Name: $item2<br>$desc2<br>$image2
";
}?>
Would this work to set the var $price when the var $item is set to 1 ? or would it use both?