Yes here it is starting on line 61 where the <?PHP tag starts:
<td height="500" colspan="5" valign="top"><?PHP
//Line 61
IF ((substr(isset($HTTP_POST_VARS["item_name"]), -3) == 'grp') and (isset($HTTP_POST_VARS["quantity"]) < 10)) {
echo 'Group rate are available only for groups with more than 10 members,<br> please press the back button of you browser and select the apropriate registration package for you and your group';
}
$price = $_GET["item_name"]; // Line 65
$numb = $_GET["quantity"]; // Line 66
if ($numb < 10){
$quantity = 1 ;
}
else {
$quantity = $numb;
}
// This function calculates a total based upon quantity, price, and tax and then returns the results.
function calculate_total ($quantity = 1, $price, $taxrate = .0) {
$total = ($quantity * $price) * ($taxrate + 1);
return number_format ($total, 2);
} // End of calculate_total() function.
echo '<TABLE width="100%" height="349" border="0" cellpadding="0" cellspacing="0">
<TR>
<TD align="center"><FONT class="FrmTitle">Please Verify your Personal Information</FONT></TD>
</TR>
<TR>
<TD><TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD width="12%"><Font class="items">Name:</FONT></TD>
<TD colspan="2">'.$_GET['first_name'].', '.$_GET['last_name'].'</TD>
</TR>
<TR>
<TD><Font class="items">Address:</FONT></TD>
<TD colspan="2">'.$_GET['address1'].'</TD>
</TR>
<TR>
<TD><Font class="items">City:</FONT></TD>
<TD colspan="2">'.$_GET['city'].'</TD>
</TR>
<TR>
<TD><Font class="items">State:</FONT></TD>
<TD width="26%">'.$_GET['state'].'</TD>
<TD width="62%"><Font class="items">Zip:</FONT> '.$_GET['zip'].'</TD>
</TR>
<TR>
<TD><Font class="items">Home phone:</FONT></TD>
<TD>('.$_GET['night_phone_a'].') '.$_GET['night_phone_b'].'</TD>
<TD><Font class="items">Work phone:</FONT>('.$_GET['day_phone_a'].') '.$_GET['day_phone_b'].'</TD>
</TR>
<TR>
<TD><Font class="items">Email:</FONT></TD>
<TD colspan="2">'.$_GET['payer_email'].'</TD>
</TR>
</TABLE></TD>
</TR>
<TR>
<TD align="center"><FONT class="FrmTitle">Please Verify your Church Information</FONT></TD>
</TR>
<TR>
<TD><TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD width="12%"><Font class="items">Name:</FONT></TD>
<TD colspan="2">'.$_GET['c_name'].'</TD>
</TR>
<TR>
<TD><Font class="items">Address:</FONT></TD>
<TD colspan="2">'.$_GET['c_address'].'</TD>
</TR>
<TR>
<TD><Font class="items">City:</FONT></TD>
<TD colspan="2">'.$_GET['c_city'].'</TD>
</TR>
<TR>
<TD><Font class="items">State:</FONT></TD>
<TD width="26%">'.$_GET['c_state'].'</TD>
<TD width="62%"><Font class="items">Zip:</font> '.$_GET['c_zip'].'</TD>
</TR>
<TR>
<TD><Font class="items">Phone:</FONT></TD>
<TD colspan="2">'.$_GET['c_phone'].'</TD>
</TR>
</TABLE></TD>
</TR>
<TR>
<TD align="center"><FONT class="FrmTitle">Rates</FONT></TD>
</TR>
<TR>
<TD>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD colspan="2" align="center"><FONT class="subtitle">Early by Oct 19 12:00pm - Late after Oct 19 12:00pm</FONT></TD>
</TR>
<TR>
<TD width="14%"> </TD>
<TD width="86%"> </TD>
</TR>
<TR>
<TD> </TD>
<TD> </TD>
</TR>
<TR>
<TD> </TD>
<TD> </TD>
</TR>
<TR>
<TD colspan="2"> </TD>
</TR>
<TR>
<TD colspan="2">';
// Main conditional.
if ((is_numeric($quantity)) and (is_numeric($price))) { // Is the quantity a number?
$total = calculate_total ($quantity , $price);
echo "<p>Please Verify that you are purchasing <b>{$quantity}</b> registration(s) at a cost of <b>\${$price}</b> each. With tax, the total comes to <b>\${$total}</b>.</p>\n";
} else { // Quantity is not a number.'
echo '<p><b>Please enter a valid quantity to purchase!</b></p>';
}
echo '</TD></TR></TABLE></TD></TR>';?>
AL Almeida
NT/DB Admin
"May all those that come behind us, find us faithfull"