All pastes #415658 Raw Edit

Anonymous

public text v1 · immutable
#415658 ·published 2007-03-29 19:46 UTC
rendered paste body
<?php	extract( $_POST); ?>

<html>
     <head>
	<title>Ken Ma</title>
	<link rel="stylesheet" type="text/css" href="mkn6570.css" />
	<script src="mkn6570Hello.js">
	</script>
     </head>

     <?php
	$dblFee = 0;
	if ($txtBType=="Cost")
		{	if	($txtCost <= txtPPName )  $dblFee = 3.16 + (0.1 * $txtCost);
		{	if	($txtCost <= txtPPName )  $dblFee = 3.16 + (0.12 * $txtCost);
		{	if	($txtCost <= txtPPName )  $dblFee = 3.16 + (0.15 * $txtCost);
		{	if	($txtCost <= txtPPName )  $dblFee = 3.16 + (0.08 * $txtCost);
		{	if	($txtCost <= txtPPName )  $dblFee = 3.16 + (0.05 * $txtCost);
		{	if	($txtCost <= txtPPName )  $dblFee = 3.16 + (0.16 * $txtCost);
		{	if	($txtCost <= txtPPName )  $dblFee = 3.16 + (0.19 * $txtCost);
		{	if	($txtCost <= txtPPName )  $dblFee = 3.16 + (0.11 * $txtCost);
		} // end Cost
	?>

<Body>
<h1>Ken Ma</h1><br>
<h2>MIS 200 HomePage</h2><br>
<h3>Spring 2007</h3><br>
<h5>Department of Decision Sciences and MIS<h5><br>
<h6>St. Louis, Missouri</h6>
<hr>
<?php echo "<h2>Customer Name: $txtCName </h2>" ?>
<hr>
<table width="30%">
	<tr>
		<?php echo "<td>Product Cost: $txtCost </td>"; ?>
	</tr>
	<tr>
		<td colspan="2"><hr size="1"></td>
	</tr>
	<tr>
		<td>Total Order:</td>
			<?php echo "$" .number_format($dblFee, 2,'.',','); ?>
		</td>
	</tr>
</table>
</body>
</html>