Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Blank Line on output of PHP script

Posted on 2008-10-03
10
1,598 Views
Last Modified: 2013-11-10
Ok, so I am stuck with a problem...and I am a noob, so pardon my ignorance. I am editING a website that was NOT created by me.
project.adamwitherspoon.com/order.html takes input and processes with calc.php, then send modified (with cc info) output to sendmail.php.
it is working fine, but at the beginning of output to calc.php, when you click 'calculate' order, the subsequent output has gray lines.

if the order form has one item select you have one line. if you have multiple line items, you will have more and more gray lines. So if a big order comes along, there are like 20 gray lines.

THIS SITE IS NOT LIVE AND YOU CAN TEST THE ORDER  AND I CAN FORWARD THE OUTPUT IF NEED BE...THERE IS NO AUTOMATIC ORDERING, AND YOU DONT NEED TO PUT IN ANYTHING EXCEPT A FAKE NAME TO MAKE IT SEND TO ME.


P.S. I will also need advise as if this order form can use SSL if anyone has any idea.
<html>
<head>
</head>
 
<body>
<form method=post action="sendemail.php">
<?php
//Variables for what the customer has ordered
//create a variable to hold the dollar amount and one as a constant variable for taxes
$amount=0.0;
$taxes="0.0146666";
$numservices=0;
$totalamount=0.0;
?>
<h1>Order Results</h1>
<table border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#cccccc">
  <td>
  <table border="0" cellspacing="1" cellpadding="5">
    <tr bgcolor="#eeeeee">
      <td valign="top" class="bodytext"><strong>Quantity</strong></td>
      <td valign="top" class="bodytext"><strong>Item</strong></td>
      <td valign="top" class="bodytext"><strong>Size</strong></td>
      <td valign="top" class="bodytext"><strong>Price</strong></td>
      <td valign="top" class="bodytext"><strong>Total</strong></td>
    </tr>
<?php
if($GingerShampoo1>0)
{
	$numservices=$GingerShampoo1;
	$amount=$numservices*2.00;
	$totalamount=$totalamount+$amount;
	?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Hawaiian Ginger Shampoo";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "1 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$2.00";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
		echo "<br>";
}
if($GingerShampoo2>0)
{
	$numservices=$GingerShampoo2;
	$amount=$numservices*2.75;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Hawaiian Ginger Shampoo";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "2 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$2.75";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	echo "<br>";
}
if($GingerShampoo8>0)
{
	$numservices=$GingerShampoo8;
	$amount=$numservices*7.95;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Hawaiian Ginger Shampoo";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "8 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$7.95";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
		echo "<br>";
}
if($Formula3Shampoo8>0)
{
	$numservices=$Formula3Shampoo8;
	$amount=$numservices*7.95;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Formula 3 Shampoo";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "8 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$7.95";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($HairConditioner1>0)
{
	$numservices=$HairConditioner1;
	$amount=$numservices*2.00;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Macadamia Hair Conditioner";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "1 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$2.00";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
}
if($HairConditioner2>0)
{
	$numservices=$HairConditioner2;
	$amount=$numservices*2.75;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Macadamia Hair Conditioner";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "1 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$2.75";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
}
if($HairConditioner8>0)
{
	$numservices=$HairConditioner8;
	$amount=$numservices*7.95;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Macadamia Hair Conditioner";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "8 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$7.95";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($MangoMiracle8>0)
{
	$numservices=$MangoMiracle8;
	$amount=$numservices*8.95;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Mango Miracle";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "8 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$8.95";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($HandandBodyLotion1>0)
{
	$numservices=$HandandBodyLotion1;
	$amount=$numservices*2.50;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Hand and Body Lotion";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "1 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$2.50";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($HandandBodyLotion2>0)
{
	$numservices=$HandandBodyLotion2;
	$amount=$numservices*3.50;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Hand and Body Lotion";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "2 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$3.50";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($HandandBodyLotion8>0)
{
	$numservices=$HandandBodyLotion8;
	$amount=$numservices*8.95;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Hand and Body Lotion";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "8 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$8.95";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($MauiDayMoisturizer1>0)
{
	$numservices=$MauiDayMoisturizer1;
	$amount=$numservices*2.75;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Maui Day Mosturizer";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "1/4 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$2.75";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
 
}
if($MauiDayMoisturizer4>0)
{
	$numservices=$MauiDayMoisturizer4;
	$amount=$numservices*12.95;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Maui Day Mosturizer";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "4 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$12.95";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
 
if($TropicalNightCreme1>0)
{
	$numservices=$TropicalNightCreme1;
	$amount=$numservices*2.75;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Tropical Night Creme";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "1/4 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$2.75";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($TropicalNightCreme2>0)
{
	$numservices=$TropicalNightCreme2;
	$amount=$numservices*14.95;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Tropical Night Creme";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "2 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$14.95";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($Creme2>0)
{
	$numservices=$Creme2;
	$amount=$numservices*29.95;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Ili Nani Ko Creme";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "2 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$29.95";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($BathGel1>0)
{
	$numservices=$BathGel1;
	$amount=$numservices*2.00;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Shower and Bath Gel";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "1 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$2.00";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($BathGel2>0)
{
	$numservices=$BathGel2;
	$amount=$numservices*2.75;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Shower and Bath Gel";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "2 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$2.75";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($BathGel8>0)
{
	$numservices=$BathGel8;
	$amount=$numservices*6.95;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Shower and Bath Gel";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "8 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$6.95";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
 
if($KiwiBodyScrub8>0)
{
	$numservices=$KiwiBodyScrub8;
	$amount=$numservices*11.95;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Kiwi Body Scrub";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "8 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$11.95";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($BlueSoap125>0)
{
	$numservices=$BlueSoap125;
	$amount=$numservices*0.99;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Blue Glycerin Soap";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "1 1/4 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$0.99";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
 
}
if($BlueSoap105>0)
{
	$numservices=$BlueSoap105;
	$amount=$numservices*5.99;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Blue Glycerin Soap";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "8 bars";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$5.99";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($PuaSoapPlumeria4>0)
{
	$numservices=$PuaSoapPlumeria4;
	$amount=$numservices*6.95;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Pua O' Hawaii Soap - Plumeria";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "4 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$6.95";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($PuaSoapOrchid4>0)
{
	$numservices=$PuaSoapOrchid4;
	$amount=$numservices*6.95;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Pua O' Hawaii Soap - Orchid";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "4 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$6.95";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($MauiFormulaLipBalm025>0)
{
	$numservices=$MauiFormulaLipBalm025;
	$amount=$numservices*2.75;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Maui Island Formula Lip Balm";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "0.25 oz <bR>tube";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$2.75";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($OatmealSandalwood3>0)
{
	$numservices=$OatmealSandalwood3;
	$amount=$numservices*3.00;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Oatmeal Sandalwood Soap";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "3 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$3.00";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
}
if($OatmealSandalwood4>0)
{
	$numservices=$OatmealSandalwood4;
	$amount=$numservices*10.00;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "Oatmeal Sandalwood Soap 4 Pack";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "3 oz";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$10.00";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($ItemPack5>0)
{
	$numservices=$ItemPack5;
	$amount=$numservices*11.95;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "5 Item Pack";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$11.95";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($ItemPack7>0)
{
	$numservices=$ItemPack7;
	$amount=$numservices*13.95;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "7 Item Pack";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$13.95";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
if($ItemPack8>0)
{
	$numservices=$ItemPack8;
	$amount=$numservices*19.95;
	$totalamount=$totalamount+$amount;
		?>
	<tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo $numservices;
		?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  	echo "8 Item Pack";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "";
	  ?>
	  </td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$19.95";
	  ?>
		</td>
	    <td valign="top" bgcolor="#FFFFFF" class="bodytext">
  	  <?php
	  	echo "$" . $amount;
	  ?>
		</td>
    </tr>
	<?php
	
 
		echo "<br>";
 
}
?>
    <tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext"><b>Sub Total</b>:</td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext"></td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext"></td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext"></td>
	  <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  echo "$" . $totalamount;
	  ?>
	  </td>
    </tr>
 
    <tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext"><b>Shipping and Handling</b></td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext" colspan=3>via Priority Mail</td>
 
	  <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  
	  if($totalamount<=50)
	  {
	 	 echo "$9.00";
	  }
	  elseif($totalamount>=51 and $totalamount<=100)
	  {
	  	 echo "$10.00";
	  
	  }
	  elseif($totalamount>=101)
	  {
	   	 echo "$0.00";
	  }
 
	  if($totalamount<=50)
	  {
	 	 $totalamount=$totalamount+9.00;
	  }
	  elseif($totalamount>=51 and $totalamount<=100)
	  {
	  $totalamount=$totalamount+10.00;
	  
	  }
	  elseif($totalamount>=101)
	  {
	  $totalamount=$totalamount+0.00;
	  }
	  
	  
	  
	  ?>
	  </td>
    </tr>
    <tr>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext"><b>Grand Total</b></td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext"></td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext"></td>
      <td valign="top" bgcolor="#FFFFFF" class="bodytext"></td>
	  <td valign="top" bgcolor="#FFFFFF" class="bodytext">
	  <?php
	  echo "$" . $totalamount;
	  ?>
	  </td>
    </tr>
 
  </table></td>
</tr>
 
</table>
<ul>
<li>If you agree with the above total, please continue filling out this form.</li>
<li>If you would like to adjust the quantities in your order, press the <b>"Back"</b>button above</li></ul>
<br><br>
<h3>Your contact information:</h3>
<table>
	<tr>
		<td>Your full name:</td>
		<td><input type=text name="fullname"></td>
	</tr>
		<tr>
		<td>Your voice phone #:</td>
		<td><input type=text name="voicephone"></td>
	</tr>
	<tr>
		<td>Your e-mail address:</td>
		<td><input type=text name="emailaddress"></td>
	</tr>
	<tr>
		<td colspan=2>Message to read:<br><br>
		<textarea cols=35 rows=5 name="message1"></textarea>
		</td>
	</tr>
 
</table>
<h3>Payment Information:</h3>
<table>
	<tr>
		<td colspan=2>
		<input type=radio name="creditcard" value="VISA">VISA<br>
		<input type=radio name="creditcard" value="MASTERCARD">Mastercard<bR>
		<input type=radio name="creditcard" value="AMERICANEXPRESS">American Express<br><br>
		
		
		
		</td>
	</tr>
 
	<tr>
		<td>Name on Card:</td>
		<td><input type=text name="ccname"></td>
	</tr>
		<tr>
		<td>Card Number:</td>
		<td><input type=text name="ccnumber"></td>
	</tr>
	<tr>
		<td>Expires:</td>
		<td><input type=text name="ccexpiration"></td>
	</tr>
</table>
 
 
<h3>Bill To:</h3>
<table>
	<tr>
		<td>Name:</td>
		<td><input type=text name="billname"></td>
	</tr>
		<tr>
		<td>Address:</td>
		<td><input type=text name="billaddress"></td>
	</tr>
	<tr>
		<td>City:</td>
		<td><input type=text name="billcity">
		&nbsp;&nbsp;&nbsp;State:<input type=text size=2 name="billstate">&nbsp;&nbsp;&nbsp;Zipcode:<input type=text size=5 name="billzip">
		
		</td>
	</tr>
	<tr>
		<td>Phone:</td>
		<td><input type=text name="billphone"></td>
		
	</tr>
 
</table>
 
 
<h3>Ship To:</h3>
<table border=1>
	<tr>
		<td>Name:</td>
		<td><input type=text name="shipname"></td>
	</tr>
		<tr>
		<td>Address:</td>
		<td><input type=text name="shipaddress"></td>
	</tr>
	<tr>
		<td>City:</td>
		<td><input type=text name="shipcity">
		&nbsp;&nbsp;&nbsp;State:<input type=text size=2 name="shipstate">&nbsp;&nbsp;&nbsp;Zipcode:<input type=text size=5 name="shipzip">
		
		</td>
	</tr>
	<tr>
		<td>Phone:</td>
		<td><input type=text name="shipphone"></td>
		
	</tr>
 
</table>
<center><input type=submit value="Submit Order"></center>
<input type="hidden" name="subject" value="<?=$subject?>" />
<input type="hidden" name="vendormail" value="<?=$vendormail?>" />
<input type="hidden" name="GingerShampoo1" value="<?=$GingerShampoo1?>" />
<input type="hidden" name="GingerShampoo2" value="<?=$GingerShampoo2?>" />
<input type="hidden" name="GingerShampoo8" value="<?=$GingerShampoo8?>" />
<input type="hidden" name="Formula3Shampoo8" value="<?=$Formula3Shampoo8?>" />
<input type="hidden" name="HairConditioner1" value="<?=$HairConditioner1?>" />
<input type="hidden" name="HairConditioner2" value="<?=$HairConditioner2?>" />
<input type="hidden" name="HairConditioner8" value="<?=$HairConditioner8?>" />
<input type="hidden" name="MangoMiracle8" value="<?=$MangoMiracle8?>" />
<input type="hidden" name="HandandBodyLotion1" value="<?=$HandandBodyLotion1?>" />
<input type="hidden" name="HandandBodyLotion2" value="<?=$HandandBodyLotion2?>" />
<input type="hidden" name="HandandBodyLotion8" value="<?=$HandandBodyLotion8?>" />
<input type="hidden" name="MauiDayMoisturizer1" value="<?=$MauiDayMoisturizer1?>" />
<input type="hidden" name="MauiDayMoisturizer4" value="<?=$MauiDayMoisturizer4?>" />
<input type="hidden" name="TropicalNightCreme1" value="<?=$TropicalNightCreme1?>" />
<input type="hidden" name="TropicalNightCreme2" value="<?=$TropicalNightCreme2?>" />
<input type="hidden" name="Creme2" value="<?=$Creme2?>" />
<input type="hidden" name="BathGel1" value="<?=$BathGel1?>" />
<input type="hidden" name="BathGel2" value="<?=$BathGel2?>" />
<input type="hidden" name="BathGel8" value="<?=$BathGel8?>" />
<input type="hidden" name="KiwiBodyScrub8" value="<?=$KiwiBodyScrub8?>" />
<input type="hidden" name="BlueSoap125" value="<?=$BlueSoap125?>" />
<input type="hidden" name="BlueSoap105" value="<?=$BlueSoap105?>" />
<input type="hidden" name="PuaSoapPlumeria4" value="<?=$PuaSoapPlumeria4?>" />
<input type="hidden" name="PuaSoapOrchid4" value="<?=$PuaSoapOrchid4?>" />
<input type="hidden" name="MauiFormulaLipBalm025" value="<?=$MauiFormulaLipBalm025?>" />
<input type="hidden" name="OatmealSandalwood3" value="<?=$OatmealSandalwood3?>" />
<input type="hidden" name="OatmealSandalwood4" value="<?=$OatmealSandalwood4?>" />
<input type="hidden" name="ItemPack5" value="<?=$ItemPack5?>" />
<input type="hidden" name="ItemPack7" value="<?=$ItemPack7?>" />
<input type="hidden" name="ItemPack8" value="<?=$ItemPack8?>" />
 
 
 
</form>
</body>
</html>

Open in new window

0
Comment
Question by:adamwitherspoon
  • 7
  • 3
10 Comments
 
LVL 1

Author Comment

by:adamwitherspoon
ID: 22638420
I forgot to mention that the lines being created are colored in the bgcolo #ccccccr:

<table border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#cccccc">
  <td>

Not sure if that is helpful at all.
0
 
LVL 10

Expert Comment

by:webwyzsystems
ID: 22638536
You have an errant <BR> tag showing up in your output, between items.
Check your snippet - lines 61 - 63, there is some PHP that inserts a <BR> between <TR>s. I think that's the problem.
0
 
LVL 10

Accepted Solution

by:
webwyzsystems earned 500 total points
ID: 22638553
oops...clicked submit too fast:

You output that <BR> for every item that has a value. But sinces it's between </TR> and <TR>....is has no place to go in the table, and ends up on top.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 1

Author Comment

by:adamwitherspoon
ID: 22638560
Thanks for your quick reply! So should I move the <BR> outside the </TR> and <TR> to get rid of it or can I replace it with something else or just remove it?
0
 
LVL 10

Expert Comment

by:webwyzsystems
ID: 22638576
Get rid of it all together. You shouldn't need it at all for formatting.
0
 
LVL 1

Author Comment

by:adamwitherspoon
ID: 22638578
Is this the culprit?

</tr>
    <?php
    echo "<br>";
}

Seems like it is outside each row, but is at the end of the row...
0
 
LVL 1

Author Comment

by:adamwitherspoon
ID: 22638581
Ok, I'm going to try that on test server in a few minutes now...
0
 
LVL 1

Author Comment

by:adamwitherspoon
ID: 22638597
You Rock!!!!!
Perfect solution!

Any thoughts on SSL, let me know or I can post another question if that is the correct way to do things...?
0
 
LVL 1

Author Closing Comment

by:adamwitherspoon
ID: 31502932
Expert solution, quick response. I wish I could give more points than the maximum the are allowing!
0
 
LVL 1

Author Comment

by:adamwitherspoon
ID: 22638964
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question