Здравствуйте. На странице выводится список товаров (если кнопка не нажата ) , а если нажата то сообщение вот оно и не выводится
<h2 align="center">Оформление заказа</h2>
<?
if($_SESSION['cart'] && !isset($_POST['order']))
{
?>
<form action="index.php?view=update_cart" method="post" id="cart-form">
<table id="mycart" align="center" cellspacing="0" cellpadding="0" border="0">
<tr>
<th>Товар</th>
<th>Цена</th>
<th>Кол-во</th>
<th>Всего</th>
</tr>
<? foreach($_SESSION['cart'] as $id => $quantity):
$product = get_product($id);
?>
<tr>
<td align="center"><?=$product['name'];?></td>
<td align="center"><?=number_format($product['price'],2);?>рублей</td>
<td align="center"><?=$quantity;?></td>
<td align="center"><?=number_format($product['price'] * $quantity,2);?>рублей</td>
</tr>
<?endforeach;?>
</table>
<p class="total" align="center">Общая сумма заказа: <span class="product-price"><?=number_format($_SESSION['total_price'],2);?><span class="ryb">рублей</span></span></p>
</form>
</div align="center">
<div class="knopka">
<p align="center"><input type="submit" name='order' value="Заказать" /></p>
</div>
</div>
<?
}
if($_SESSION['cart'] && isset($_POST['order']))
{
echo "<p align='center'>Заказ оформлен<p>";
}
?>