here is entire php code if it helps[php]<?php
session_start();
require_once “connect.php”;
if(isset($_SESSION[‘logged’])){
// Query member data from the database and ready it for display
$cid = $_SESSION[‘complete’];
$academy = $_SESSION[‘academy’];
$sql = mysql_query(“SELECT * FROM login where academy =’$academy’”);
while($row = mysql_fetch_array($sql)){
$date =$row[“date”];
if ($date !=="".date(‘m-d-Y’)){echo ‘’;
exit(); }
}
}else{
echo ‘’;
exit();
}
echo $cid;
echo $academy;
if($_POST[‘total’]){
$total = $_POST[‘total’];
}
?>
Untitled Document
<script type="text/javascript"><!--
if(document.all && !document.getElementById) { //IE4 support
document.getElementById = function(id) { return document.all[id]; }
}
function dss_addLoadEvent(fn) {
if(typeof(fn)!=“function”)return;
var tempFunc=window.onload;
window.onload=function() {
if(typeof(tempFunc)==“function”)tempFunc();
fn();
}
}
dss_addLoadEvent(function() {
if(!document.getElementById) return;
var f = document.getElementById(‘form2’);
// to prevent the form from submitting in this demo
f.onsubmit = function(){ return false; }
// hide the textarea and its parent label
document.getElementById(‘demo_radio_ta_label2’).style.display = ‘none’;
// get a reference to the radio button group
var rads = f.elements[‘demo_radio2’];
for(var i=0;i<rads.length;i++) {
// we add the event handler to each button in the group
rads[i].onkeyup=rads[i].onclick=function(){
if(!this.checked) return;
var el = document.getElementById(‘demo_radio_ta_label2’);
el.style.display = (this.value!=="")?’’:‘none’;
}
// in case, for any reason, one of the radio buttons is already checked
rads[i].onclick();
}
});
// -->
Please enter total given
do not enter commas (,) or dollar signs ($)
<p>
<?php setlocale(LC_MONETARY, "en_US");
echo money_format(“The total is %n”, $total);?>
<div id=“Accordion1” class="Accordion"tabindex=“0”>
One Payment Type
<form id="form1" name="form1" action="final.php" method="post" >
Please select Payment Type<br /><label>
<input type="radio" name="type" value="Cash" id="demo_radio1" />
Cash</label>
<br />
<label>
<input type="radio" name="type" value="Credit Card" id="demo_radio1" />
Credit Card</label>
<br />
<label>
<input type="radio" name="type" value="Check" id="demo_radio1" />
Check</label>
<br />
<label>
<input type="radio" name="type" value="Gift Card" id="demo_radio1" />
Gift Card</label>
<br />
</p>
<p>
<?php
// Query member data from the database and ready it for display
$sql = mysql_query(“SELECT * FROM cart where cart_id = '”.$_SESSION[‘complete’]."’ && product123 !=’’");
while($row = mysql_fetch_array($sql)){
$product = $row[“product123”];
$price1 = $row[“price”];
$id = $row[“product_id”];
$qty = $row[“quantity”];
$month = date(“F Y”);
$day = date(“d”);
$year = date(“Y”);
$date = date(“Y-m-d”);
?>
<?php
}
?>
<input type="hidden" name="total" id="total" value="<?php echo $total; ?>" />
Amount:
<input name="submit" type="submit" value="Checkout"
/>
</p>
</form></div>
[/php]