Undefined Variable
<pre><code>&lt;?php
$name = $_GET['name'];
if ($_GET['size'] == "small") 
{
    $delivery = 5;
    $_GET['size'] = 5;
    $_GET['topping'] = 1;
    if ($_GET['deliverytype'] == "pickup") 
    {
        $total = $_GET['size'] + $_GET['topping'];
    } 
    elseif ($_GET['deliverytype'] == "delivery") 
    {
        $total = $_GET['size'] + $_GET['topping'] + $delivery;
    }
}
echo "Dear " . $name. " your " . $_GET["size"] . " pizza has been ordered.";
echo "You Total is " . $total;

?&gt;
</code></pre>

<p>I am getting an error: 
Notice: Undefined variable: total in <code>C:\xampp\htdocs\process.php on line 57</code>
Can anyone suggest, why is it so?</p>
