", htmlentities($name), "", htmlentities($street), "", htmlentities($city), "", htmlentities($state), "", htmlentities($zip), "", $type, ">";
}
function Item($partNum, $productName, $quantity, $USPrice, $shipDate = null, $comment = null)
{
echo "- ", htmlentities($productName), "", htmlentities($quantity), "", htmlentities($USPrice), "";
if(!is_null($shipDate))
{
echo "", htmlentities($shipDate), "";
}
if(!is_null($comment))
{
echo "", htmlentities($comment), "";
}
echo "
";
}
function xmlFormatDate($Fecha, $NotNull = false)
{
if(is_null($Fecha) or $Fecha == 0)
{
return ($NotNull ? "'1930-01-01'" : "null");
}
return date("Y-m-d", $Fecha);
}
echo "";
Address("shipTo", "Alice Smith", "123 Maple Street", "Mill Valley", "CA", "90952");
Address("billTo", "Robert Smith", "8 Oak Avenue", "Old Town", "PA", "95819");
echo "Hurry, my lawn is going wild
& I'm <a little bit> desperate ";
Item("872-AA", "Lawnmower", 1, 148.95, null, "Confirm this is electric");
Item("926-AA", "Baby Monitor", 1, 39.98, "1999-05-21");
echo "";
?>