$table->addRow( array( "Delivery Suburb:", $delivery_data['delivery_suburb'] ) );
$table->addRow( array( "Delivery Price:", sprintf( "%01.2f", $delivery_data['delivery_price'] ) ) );
$table->addRow( array( "Special Instructions:", stripslashes( $passed_form['form_delivery_notes'] ) ) );
$day_array = array( "DAY", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
22, 23, 24, 25, 26, 27, 28, 29, 30, 31 );
$month_array = array( "MONTH", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
"Nov", "Dec" );
$this_year = date( 'Y' );
$year_array = array( "YEAR", $this_year, $this_year+1, $this_year+2, $this_year+3, $this_year+4,
$this_year+5 );
$delivery_date = $day_array[$passed_form['form_delivery_day']]."-".
$month_array[$passed_form['form_delivery_month']]."-".
$year_array[$passed_form['form_delivery_year']];
$table->addRow( array( "Required Date:", $delivery_date ) );
$table->addRow( array( "Total Order Price:", $passed_form['form_total_price'] ) );
$body = $table->toHTML();
$body = "<html><head></head><body>".$body."</body></html>";
mail( $email, "Internet Order Received", $body, "From: [email]admin@xxxxxxx.com[/email]\r\nReply-to: [email]admin@xxxxxxx.com[/email]\nContent-Type: text/html; charset=\"iso-8859-1\"\n" );
?>
<body onLoad="document.getElementById( 'autoSubmit' ).submit();window.location.href=('close.html')">
<h1>One moment please....</h1>
<form target="_blank" name="autoSubmit" id="autoSubmit" ACTION="https://payments.verisign.com.au/payflowlink" METHOD="POST">
<input type="hidden" Client ID>
<input type="hidden" name="login" value="xxxxxxx">
<input type="hidden" name="PARTNER" value="VSA">
<input type="hidden" NoReload>
<input type="hidden" name="noReload" value="1">
<input type="hidden" PostBack>
<input type="hidden" name="postBack" value="1">
<input type="hidden" name="name" value="<?php print $formatted_name; ?>">
<input type="hidden" Currency Code>
<input type="hidden" name="currencyCode" value="AUD">
<input type="hidden" name="orderNumber" value="<?php print $passed_form['order_id']; ?>">
<input type="hidden" name="orderDescription" value="<?php print "Internet purchase ".date( "d/m/Y H:i:s" ); ?>">
<input type="hidden" name="cards" value="4">
<input type="hidden" name="email" value="sales@xxxxxxx.com.au">
<input type="hidden" SuccessURL>
<input type="hidden" name="successURL" value="http://www.xxxxxxx.com.au/transaction_return_success.php">
<input type="hidden" Fail URL>
<input type="hidden" name="failURL" value="http://www.xxxxxxx.com.au/transaction_return_failure.php">
<input type="hidden" name="amountDollar" value="<?php print $dollars; ?>" size="6">
<input type="hidden" name="amountCent" value="<?php print $cents; ?>" size="2">
<input type="SUBMIT" VALUE="Proceed with Payment">
</form>
[code=php]