Solved

Processing Form with PayPal Button

Posted on 2009-05-19
12
579 Views
Last Modified: 2013-12-12
I have a form that members use to register for a convention.  Their choices are summarized on a form process page, and if everything is copacetic, they click a PayPal button which forwards them to the PayPal site.  I have the form also tied to a WebAssist Universal Email page that currently has a trigger of "any form post."

There are three options to send the Universal Email.  Two are "on page load" and "any form post".  The third is "current page submit."  The first two will send the email, but the page has a calculation script on it that hasn't run yet, and therefore the $totalAmount variable isn't defined to be sent with the email.  The "current page submit" doesn't send the email because there is no submit button, but rather an image (the paypal button.)

Is there a way to make the PayPal image actionable so that it will also trigger the send of the email?
<?php require_once("WA_Universal_Email/PEAR_Mail_using_SMTP_PHP.php"); ?>

<?php require_once("WA_Universal_Email/MailFormatting_PHP.php"); ?>

<?php

if (($_SERVER["REQUEST_METHOD"] == "POST"))     {

  //WA Universal Email object="PEAR Mail using SMTP"

  //Send Loop Once Per Entry

  $RecipientEmail = "dennis.hacker@offthesheet.com";include("WA_Universal_Email/WAUE_showcaseprocessregistration2009_1.php");

  $RecipientEmail = "allen.ahner@offthesheet.com";include("WA_Universal_Email/WAUE_showcaseprocessregistration2009_1.php");
 

  //Send Mail All Entries

  if (""!="")     {

    header("Location: ");

  }

}

?>

<?php

$golfPartner =           $_POST['golfPartner'];

$golf =					 $_POST['golf'];

$bowlingDoublesPartner = $_POST['bowlingDoublesPartner'];

$adultSquadTime =        $_POST['adultSquadTime'];

$youthSquadTime =        $_POST['youthSquadTime'];

$adultBowling =          $_POST['adultBowling'];

$youthBowling =          $_POST['youthBowling'];

$meetingLuncheon =       $_POST['meetingLuncheon'];

$youthWorkshop =         $_POST['youthWorkshop'];

$adultWorkshop =         $_POST['adultWorkshop'];

$celebrationGala =       $_POST['celebrationGala'];

$breakfast =             $_POST['breakfast'];

$usbcPresentation =      $_POST['usbcPresentation'];

$mobpaLuncheon =         $_POST['mobpaLuncheon'];

$regName =               $_POST['regName'];

$regAddress1 =           $_POST['regAddress1'];

$regAddress2 =           $_POST['regAddress2'];

$regCity =               $_POST['regCity'];

$regState =              $_POST['regState'];

$regZipCode =            $_POST['regZipCode'];

$regTelephone =          $_POST['regTelephone'];

$regEmail =              $_POST['regEmail'];

$regAssociation =	     $_POST['regAssociation'];

$subTotal = 0.00;

$payPal = 0.029;
 

if ($golf !== 'YES') {

$golfAmount = 0.00;

} else {

	$golfAmount = 43.00;

}
 

if ($adultBowling !== 'YES') {

	$adultBowlingAmount = 0.00;

} else {

$adultBowlingAmount = 10.00;

}
 

if ($youthBowling !== 'YES') {

	$youthBowlingAmount = 0.00;

} else {

	$youthBowlingAmount = 10.00;

}
 

if ($celebrationGala !== 'YES') {

	$celebrationGalaAmount = 0.00;

} else {

	$celebrationGalaAmount = 25.00;

}
 

if ($breakfast !== 'YES') {

	$breakfastAmount = 0.00;

} else {

$breakfastAmount = 10.00;

}
 

$subTotal = 		$golfAmount +

					$adultBowlingAmount +

					$youthBowlingAmount +

					$celebrationGalaAmount +

					$breakfastAmount;

									

$totalAmount =		($subTotal * (1 + $payPal)) + .3;
 

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!-- saved from url=(0014)about:internet -->

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<style type="text/css">

td img {display: block;}body {

	margin-top: 0px;

	background-image: url(/Images/IndexBackground2.jpg);

	background-repeat: no-repeat;

}

</style>

<!--Fireworks CS3 Dreamweaver CS3 target.  Created Mon Mar 17 23:12:06 GMT-0500 (Central Daylight Time) 2008-->

<link href="mainstyle.css" rel="stylesheet" type="text/css" />
 

</head>

<body bgcolor="#283168">

<center>

<table border="0" cellpadding="0" cellspacing="0" width="955">

<!-- fwtable fwsrc="MOUSBCSubPageShell.png" fwpage="Page 1" fwbase="MOUSBCSubPageShell.gif" fwstyle="Dreamweaver" fwdocid = "2105966092" fwnested="0" -->

  <tr>

   <td><img src="Images/SubPageFiles/spacer.gif" width="150" height="1" border="0" alt="" /></td>

   <td><img src="Images/SubPageFiles/spacer.gif" width="150" height="1" border="0" alt="" /></td>

   <td><img src="Images/SubPageFiles/spacer.gif" width="655" height="1" border="0" alt="" /></td>

   <td><img src="Images/SubPageFiles/spacer.gif" width="1" height="1" border="0" alt="" /></td>

  </tr>
 

  <tr>

   <td id="sidenav" rowspan="4" valign="top"><div align="left"><img src="Images/SubPageFiles/Front Page_r1_c1.jpg" width="150" height="200" />

       <?php include("sidenav.inc.php"); ?>

   </div></td>

   <td rowspan="4" valign="top" bgcolor="#D62F12"><table width="100%" border="0" cellpadding="0" cellspacing="0">

     <tr>

       <td><img src="Images/SubPageFiles/Front Page_r1_c2.jpg" alt="" width="150" height="200" /></td>

     </tr>

     <tr>

       <td><p>&nbsp;</p>

                 <p>&nbsp;</p></td>

     </tr>

   </table></td>

   <td align="center" background="Images/SubPageFiles/MOUSBCSubPageShell_r1_c3.gif">

   <br />

   <?

			/* Banners Rotating

			/banner1.inc.php   Open Championship Standings

			/banner2.inc.php   Women's Championship Standings

			/banner3.inc.php   Youth Championship Opens Next Week

			*/

			srand((double)microtime()*1000000); 

			$banner = rand(1,3);

			include ('banner'.$banner.'.inc.php');

   ?><br />

   </td>

   <td><img src="Images/SubPageFiles/spacer.gif" width="1" height="70" border="0" alt="" /></td>

  </tr>

  <tr>

   <td id="nav" align="center" background="Images/SubPageFiles/MOUSBCSubPageShell_r2_c3.gif">

   <?php include("topnav.inc.php"); ?>   </td>

   <td><img src="Images/SubPageFiles/spacer.gif" width="1" height="30" border="0" alt="" /></td>

  </tr>

  <tr>

   <td rowspan="2" valign="top" background="Images/SubPageFiles/MOUSBCSubPageShell_r5_c3.jpg" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="5">

     <tr>

       <td width="3%">&nbsp;</td>

       <td width="97%"><div align="center">

         <h2>MISSOURI STATE USBC SHOWCASE REGISTRATION</h2>

       </div></td>

     </tr>

     <tr>

       <td>&nbsp;</td>

       <td><div align="center">

         <form id="showcase" name="showcasepro" method="post" action="https://www.paypal.com/cgi-bin/webscr">

         <table id="mainnews" width="620" border="1" cellpadding="3" cellspacing="0">

             <tr>

               <th colspan="3" scope="col"><p>Please review the details below and verify that your choices are correct.<br />

               If not, you can return to the <a href="/showcaseregistration2009.php">registration form</a> and start over.</p>

                 <p>DEADLINE TO REGISTER IS MIDNIGHT, MAY 15, 2009</p></th>

               </tr>

             <tr>

               <td bgcolor="#AFB1C6"><div align="left">

                 <h5>EVENT</h5>

               </div></td>

               <td width="70" bgcolor="#AFB1C6"><div align="center">

                 <h5>SELECT</h5>

               </div></td>

               <td width="70" bgcolor="#AFB1C6"><div align="center">

                 <h5>AMOUNT</h5>

               </div></td>

             </tr>

             <tr>

               <td width="452"><p align="left"><strong>GOLF TOURNAMENT</strong><br />

               </p>

                 <p align="left">

                   Partner:&nbsp; <input type="hidden" value="<?php echo($golfPartner); ?>" name="golfPartner"/> <?php echo($golfPartner);?>

                   <br />

                   <br />

                   </p></td>

               <td><div align="center">

                 <?php echo $golf; ?>

                 <input type="hidden" value="<?php echo $golf ?>" name="golf" />

               </div></td>

               <td><div align="center">

                 <h2>$43</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left"><strong>BOWLING TOURNAMENT--ADULT DOUBLES</strong><br />

                   <table width="154">

                     <tr>

                       <td width="146">Squad Time:<?php echo $adultSquadTime; ?><input type="hidden" value="<?php echo $adultSquadTime; ?>" name="adultSquadTime"/> </td>

                     </tr>

                   </table>

                   Partner:&nbsp; <?php echo($bowlingDoublesPartner); ?><input type="hidden" value="<?php echo($bowlingDoublesPartner); ?>" name="bowlingDoublesPartner" /><br />

               </div></td>

               <td><div align="center">

                 <?php echo $adultBowling; ?>

                 <input type="hidden" value="<?php echo $adultBowling; ?>" name="adultBowling" />

               </div></td>

               <td><div align="center">

                 <h2>$10</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left">

                 <strong>BOWLING TOURNAMENT--YOUTH SINGLES</strong><br />

                 <table width="154">

                   <tr>

                     <td width="146">Squad Time:&nbsp; <?php echo $youthSquadTime; ?><input type="hidden" value=" <?php echo $youthSquadTime; ?>" name="youthSquadTime" /></td>

                   </tr>

                 </table>

                 </div></td>

               <td><div align="center">

                 <?php echo $youthBowling; ?><input type="hidden" value="<?php echo $youthBowling; ?>" name="youthBowling" />

               </div></td>

               <td><div align="center">

                 <h2>$10</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left"><strong>ANNUAL MEETING LUNCHEON</strong><br />

                 Saturday, 12:00 PM<br />

               </div></td>

               <td><div align="center">

                 <?php echo $meetingLuncheon; ?><input type="hidden" value="<?php echo $meetingLuncheon; ?>" name="meetingLuncheon" />

               </div></td>

               <td><div align="center">

                 <h2>N/C</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left"><strong>YOUTH WORKSHOP</strong><br />

               Saturday, 3:30 PM - 4:30 PM  <br />

               </div></td>

               <td><div align="center">

                 <?php echo $youthWorkshop; ?><input type="hidden" value="<?php echo $youthWorkshop; ?>" name="youthWorkshop" />

               </div></td>

               <td><div align="center">

                 <h2>N/C</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left"><strong>ADULT WORKSHOP</strong><br />

                 Saturday, 4:45 PM - 5:45 PM  <br />

               </div></td>

               <td><div align="center">

                 <?php echo $adultWorkshop; ?><input type="hidden" value="<?php echo $adultWorkshop; ?>" name="adultWorkshop" />

               </div></td>

               <td><div align="center">

                 <h2>N/C</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left"><strong>MSUSBC CELEBRATION GALA</strong><br />

               Saturday Evening<br />

               </div></td>

               <td><div align="center">

                 <?php echo $celebrationGala; ?><input type="hidden" value="<?php echo $celebrationGala; ?>" name="celebrationGala" />

               </div></td>

               <td><div align="center">

                 <h2>$25</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left"><strong>BREAKFAST WITH THE BOARD</strong><br />

               Sunday, 8:15 AM<br />

               </div></td>

               <td><div align="center">

                 <?php echo $breakfast; ?><input type="hidden" value="<?php echo $breakfast; ?>" name="breakfast" />

               </div></td>

               <td><div align="center">

                 <h2>$10</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left"><strong>USBC PRESENTATION</strong><br />

               Sunday, 9:00 AM - 10:30 AM  <br />

               </div></td>

               <td><div align="center">

                 <?php echo $usbcPresentation; ?><input type="hidden" value="<?php echo $usbcPresentation; ?>" name="usbcPresentation" />

               </div></td>

               <td><div align="center">

                 <h2>N/C</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left">

                 <p><strong>MOBPA EXHIBITS and LUNCHEON BUFFET</strong><br />

                   Sunday, 11:00 AM - 3:00 PM&nbsp; Exhibits Open<br />

                 </p>

                 </div></td>

               <td><div align="center">

                 <?php echo $mobpaLuncheon; ?><input type="hidden" value="<?php echo $mobpaLuncheon; ?>" name="mobpaLuncheon" />

               </div></td>

               <td><div align="center">

                 <h2>N/C</h2>

               </div></td>

             </tr>

             <tr>

               <td colspan="3" bgcolor="#AFB1C6"><div align="center"><strong>- - - - -</strong></div>                 <div align="center"></div></td>

               </tr>

             <tr>

               <td colspan="3"><div align="center">

                 <table width="100%" border="0" cellpadding="3">

                   <tr>

                     <td colspan="2"><div align="center">

                       <h4>REGISTRANT INFORMATION</h4>

                     </div></td>

                     </tr>

                   <tr>

                     <td width="40%"><div align="right">Full Name:</div></td>

                     <td width="60%">

                       <div align="left"><input type="hidden" name="regName" value="<?php echo $regName; ?>" /><?php echo $regName; ?></div></td>

                   </tr>

                   <tr>

                     <td><div align="right">Address:</div></td>

                     <td><div align="left"><?php echo $regAddress1; ?><input type="hidden" value="<?php echo $regAddress1; ?>" name="regAddress1" /></div></td>

                   </tr>

                   <tr>

                     <td><div align="right"></div></td>

                     <td><div align="left"><?php echo $regAddress2; ?><input type="hidden" value="<?php echo $regAddress2; ?>" name="regAddress2" /></div></td>

                   </tr>

                   <tr>

                     <td><div align="right">City:</div></td>

                     <td><div align="left"><?php echo $regCity; ?><input type="hidden" value="<?php echo $regCity; ?>" name="regCity" /></div></td>

                   </tr>

                   <tr>

                     <td><div align="right">State:</div></td>

                     <td><div align="left"><?php echo $regState; ?><input type="hidden" value="<?php echo $regState; ?>" name="regState" /></div></td>

                   </tr>

                   <tr>

                     <td><div align="right">Zip Code:</div></td>

                     <td><div align="left"><?php echo $regZipCode; ?><input type="hidden" value="<?php echo $regZipCide; ?>" name="regZipCode" /></div></td>

                   </tr>

                   <tr>

                     <td><div align="right">Telephone:</div></td>

                     <td><div align="left"><?php echo $regTelephone; ?><input type="hidden" value="<?php echo $regTelephone; ?>" name="regTelephone" /></div></td>

                   </tr>

                   <tr>

                     <td><div align="right">Email Address:</div></td>

                     <td><div align="left"><?php echo $regEmail; ?><input type="hidden" value="<?php echo $regEmail; ?>" name="regEmail" /></div></td>

                   </tr>

                   <tr>

                     <td><div align="right">Association:</div></td>

                     <td><div align="left"><?php echo $regAssociation; ?><input type="hidden" value="<?php echo $regAssociation; ?>" name="regAssociation" /></div></td>

                   </tr>

                   <tr>

                     <td colspan="2"><hr /></td>

                     </tr>

                   <tr>

                     <td><div align="right">Subtotal:</div></td>

                     <td><?php echo "$".number_format($subTotal,2); ?></td>

                   </tr>

                   <tr>

                     <td><div align="right">Total Amount Due:</div></td>

                     <td><?php echo "$".number_format($totalAmount,2); ?>

                     

                     <input type="hidden" name="totalAmount" value="<?php echo "$".number_format($totalAmount,2);?>" />

                     &nbsp;&nbsp; <a href="paypalcharge.html">Why the difference?</a></td>

                   </tr>

                   <tr>

                     <td>&nbsp;</td>

                     <td>&nbsp;  <input type="hidden" name="cmd" value="_xclick" />

  <input type="hidden" name="bn" value="webassist.dreamweaver.4_5_0" />

  <input type="hidden" name="business" value="dennis.hacker@offthesheet.com" />

  <input type="hidden" name="item_name" value="Showcase" />

  <input type="hidden" name="item_number" value="Showcase2009" />

  <input type="hidden" name="amount" value="<?php echo number_format($totalAmount,2); ?>" />

  <input type="hidden" name="currency_code" value="USD" />

  <input type="hidden" name="shipping" value="0" />

  <input type="hidden" name="shipping2" value="0" />

  <input type="hidden" name="handling" value="" />

  <input type="hidden" name="return" value="http://www.mousbc.org/registrationsuccess-showcase.php" />

  <input type="hidden" name="cancel_return" value="http://www.mousbc.org/registration-showcase.php" />

  <input type="hidden" name="undefined_quantity" value="0" />

  <input type="hidden" name="receiver_email" value="dennis.hacker@offthesheet.com" />

  <input type="hidden" name="mrb" value="R-3WH47588B4505740X" />

  <input type="hidden" name="pal" value="ANNSXSLJLYR2A" />

  <input type="hidden" name="no_shipping" value="1" />

  <input type="hidden" name="no_note" value="0" />

  <input  name="submit" type="image" src="http://images.paypal.com/images/x-click-but6.gif" alt="Make payments with PayPal, it's fast, free, and secure!" border="0" /></td>

                   </tr>

                 </table>

               </div>                 <div align="center"></div></td>

               </tr>

           </table>

           </form>

         </div></td>

     </tr>

     <tr>

       <td>&nbsp;</td>

       <td>&nbsp;</td>

     </tr>

   </table>     </td>

   <td><img src="Images/SubPageFiles/spacer.gif" width="1" height="100" border="0" alt="" /></td>

  </tr>

  <tr>

   <td><img src="Images/SubPageFiles/spacer.gif" width="1" height="280" border="0" alt="" /></td>

  </tr>

  

  

  <tr>

   <td colspan="3" background="Images/SubPageFiles/MOUSBCSubPageShell_r7_c1.gif"><table width="100%" border="0" cellpadding="0">

     <tr>

       <td id="copyright" width="299" align="center"><?php include("copyright.inc.php"); ?></td>

       <td id="nav" width="655" align="center"><?php include("botnav.inc.php"); ?></td>

     </tr>

   </table></td>

   <td><img src="Images/SubPageFiles/spacer.gif" width="1" height="30" border="0" alt="" /></td>

  </tr>

</table>

</center>
 
 

</body>

</html>

<title><?php echo($title);?> 2009 Showcase Online Registration - MOUSBC.org</title>

Open in new window

0
Comment
Question by:DennisHacker
  • 5
  • 3
12 Comments
 
LVL 4

Expert Comment

by:trencH87
ID: 24429145
Use an onClick event, like this:

<input name="submit" onclick="javascript:document.showcasepro.submit()" type="image" src="http://images.paypal.com/images/x-click-but6.gif" alt="Make payments with PayPal, it's fast, free, and secure!" border="0" />

Open in new window

0
 

Author Comment

by:DennisHacker
ID: 24432063
Thanks.  I will give that a try today and see if it works.  I assume the trigger on the Universal Email should be set to "current page submit" when doing this.
0
 

Author Comment

by:DennisHacker
ID: 24432333
That still did not trigger the email send.  The trigger is now set to "current page submit."  The code that controls that is in the top of the code block that I have attached.
<?php require_once("WA_Universal_Email/PEAR_Mail_using_SMTP_PHP.php"); ?>

<?php require_once("WA_Universal_Email/MailFormatting_PHP.php"); ?>

<?php

if ((($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)))     {

  //WA Universal Email object="PEAR Mail using SMTP"

  //Send Loop Once Per Entry

  $RecipientEmail = "dennis.hacker@offthesheet.com";include("WA_Universal_Email/WAUE_showcaseprocessregistration2009_1.php");

  $RecipientEmail = "allen.ahner@offthesheet.com";include("WA_Universal_Email/WAUE_showcaseprocessregistration2009_1.php");
 

  //Send Mail All Entries

  if (""!="")     {

    header("Location: ");

  }

}

?>

<?php

$golfPartner =           $_POST['golfPartner'];

$golf =					 $_POST['golf'];

$bowlingDoublesPartner = $_POST['bowlingDoublesPartner'];

$adultSquadTime =        $_POST['adultSquadTime'];

$youthSquadTime =        $_POST['youthSquadTime'];

$adultBowling =          $_POST['adultBowling'];

$youthBowling =          $_POST['youthBowling'];

$meetingLuncheon =       $_POST['meetingLuncheon'];

$youthWorkshop =         $_POST['youthWorkshop'];

$adultWorkshop =         $_POST['adultWorkshop'];

$celebrationGala =       $_POST['celebrationGala'];

$breakfast =             $_POST['breakfast'];

$usbcPresentation =      $_POST['usbcPresentation'];

$mobpaLuncheon =         $_POST['mobpaLuncheon'];

$regName =               $_POST['regName'];

$regAddress1 =           $_POST['regAddress1'];

$regAddress2 =           $_POST['regAddress2'];

$regCity =               $_POST['regCity'];

$regState =              $_POST['regState'];

$regZipCode =            $_POST['regZipCode'];

$regTelephone =          $_POST['regTelephone'];

$regEmail =              $_POST['regEmail'];

$regAssociation =	     $_POST['regAssociation'];

$subTotal = 0.00;

$payPal = 0.029;
 

if ($golf !== 'YES') {

$golfAmount = 0.00;

} else {

	$golfAmount = 43.00;

}
 

if ($adultBowling !== 'YES') {

	$adultBowlingAmount = 0.00;

} else {

$adultBowlingAmount = 10.00;

}
 

if ($youthBowling !== 'YES') {

	$youthBowlingAmount = 0.00;

} else {

	$youthBowlingAmount = 10.00;

}
 

if ($celebrationGala !== 'YES') {

	$celebrationGalaAmount = 0.00;

} else {

	$celebrationGalaAmount = 25.00;

}
 

if ($breakfast !== 'YES') {

	$breakfastAmount = 0.00;

} else {

$breakfastAmount = 10.00;

}
 

$subTotal = 		$golfAmount +

					$adultBowlingAmount +

					$youthBowlingAmount +

					$celebrationGalaAmount +

					$breakfastAmount;

									

$totalAmount =		($subTotal * (1 + $payPal)) + .3;
 

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!-- saved from url=(0014)about:internet -->

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<style type="text/css">

td img {display: block;}body {

	margin-top: 0px;

	background-image: url(/Images/IndexBackground2.jpg);

	background-repeat: no-repeat;

}

</style>

<!--Fireworks CS3 Dreamweaver CS3 target.  Created Mon Mar 17 23:12:06 GMT-0500 (Central Daylight Time) 2008-->

<link href="mainstyle.css" rel="stylesheet" type="text/css" />
 

</head>

<body bgcolor="#283168">

<center>

<table border="0" cellpadding="0" cellspacing="0" width="955">

<!-- fwtable fwsrc="MOUSBCSubPageShell.png" fwpage="Page 1" fwbase="MOUSBCSubPageShell.gif" fwstyle="Dreamweaver" fwdocid = "2105966092" fwnested="0" -->

  <tr>

   <td><img src="Images/SubPageFiles/spacer.gif" width="150" height="1" border="0" alt="" /></td>

   <td><img src="Images/SubPageFiles/spacer.gif" width="150" height="1" border="0" alt="" /></td>

   <td><img src="Images/SubPageFiles/spacer.gif" width="655" height="1" border="0" alt="" /></td>

   <td><img src="Images/SubPageFiles/spacer.gif" width="1" height="1" border="0" alt="" /></td>

  </tr>
 

  <tr>

   <td id="sidenav" rowspan="4" valign="top"><div align="left"><img src="Images/SubPageFiles/Front Page_r1_c1.jpg" width="150" height="200" />

       <?php include("sidenav.inc.php"); ?>

   </div></td>

   <td rowspan="4" valign="top" bgcolor="#D62F12"><table width="100%" border="0" cellpadding="0" cellspacing="0">

     <tr>

       <td><img src="Images/SubPageFiles/Front Page_r1_c2.jpg" alt="" width="150" height="200" /></td>

     </tr>

     <tr>

       <td><p>&nbsp;</p>

                 <p>&nbsp;</p></td>

     </tr>

   </table></td>

   <td align="center" background="Images/SubPageFiles/MOUSBCSubPageShell_r1_c3.gif">

   <br />

   <?

			/* Banners Rotating

			/banner1.inc.php   Open Championship Standings

			/banner2.inc.php   Women's Championship Standings

			/banner3.inc.php   Youth Championship Opens Next Week

			*/

			srand((double)microtime()*1000000); 

			$banner = rand(1,3);

			include ('banner'.$banner.'.inc.php');

   ?><br />

   </td>

   <td><img src="Images/SubPageFiles/spacer.gif" width="1" height="70" border="0" alt="" /></td>

  </tr>

  <tr>

   <td id="nav" align="center" background="Images/SubPageFiles/MOUSBCSubPageShell_r2_c3.gif">

   <?php include("topnav.inc.php"); ?>   </td>

   <td><img src="Images/SubPageFiles/spacer.gif" width="1" height="30" border="0" alt="" /></td>

  </tr>

  <tr>

   <td rowspan="2" valign="top" background="Images/SubPageFiles/MOUSBCSubPageShell_r5_c3.jpg" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="5">

     <tr>

       <td width="3%">&nbsp;</td>

       <td width="97%"><div align="center">

         <h2>MISSOURI STATE USBC SHOWCASE REGISTRATION</h2>

       </div></td>

     </tr>

     <tr>

       <td>&nbsp;</td>

       <td><div align="center">

         <form id="showcase" name="showcasepro" method="post" action="https://www.paypal.com/cgi-bin/webscr">

         <table id="mainnews" width="620" border="1" cellpadding="3" cellspacing="0">

             <tr>

               <th colspan="3" scope="col"><p>Please review the details below and verify that your choices are correct.<br />

               If not, you can return to the <a href="/showcaseregistration2009.php">registration form</a> and start over.</p>

                 <p>DEADLINE TO REGISTER IS MIDNIGHT, MAY 15, 2009</p></th>

               </tr>

             <tr>

               <td bgcolor="#AFB1C6"><div align="left">

                 <h5>EVENT</h5>

               </div></td>

               <td width="70" bgcolor="#AFB1C6"><div align="center">

                 <h5>SELECT</h5>

               </div></td>

               <td width="70" bgcolor="#AFB1C6"><div align="center">

                 <h5>AMOUNT</h5>

               </div></td>

             </tr>

             <tr>

               <td width="452"><p align="left"><strong>GOLF TOURNAMENT</strong><br />

               </p>

                 <p align="left">

                   Partner:&nbsp; <input type="hidden" value="<?php echo($golfPartner); ?>" name="golfPartner"/> <?php echo($golfPartner);?>

                   <br />

                   <br />

                   </p></td>

               <td><div align="center">

                 <?php echo $golf; ?>

                 <input type="hidden" value="<?php echo $golf ?>" name="golf" />

               </div></td>

               <td><div align="center">

                 <h2>$43</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left"><strong>BOWLING TOURNAMENT--ADULT DOUBLES</strong><br />

                   <table width="154">

                     <tr>

                       <td width="146">Squad Time:<?php echo $adultSquadTime; ?><input type="hidden" value="<?php echo $adultSquadTime; ?>" name="adultSquadTime"/> </td>

                     </tr>

                   </table>

                   Partner:&nbsp; <?php echo($bowlingDoublesPartner); ?><input type="hidden" value="<?php echo($bowlingDoublesPartner); ?>" name="bowlingDoublesPartner" /><br />

               </div></td>

               <td><div align="center">

                 <?php echo $adultBowling; ?>

                 <input type="hidden" value="<?php echo $adultBowling; ?>" name="adultBowling" />

               </div></td>

               <td><div align="center">

                 <h2>$10</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left">

                 <strong>BOWLING TOURNAMENT--YOUTH SINGLES</strong><br />

                 <table width="154">

                   <tr>

                     <td width="146">Squad Time:&nbsp; <?php echo $youthSquadTime; ?><input type="hidden" value=" <?php echo $youthSquadTime; ?>" name="youthSquadTime" /></td>

                   </tr>

                 </table>

                 </div></td>

               <td><div align="center">

                 <?php echo $youthBowling; ?><input type="hidden" value="<?php echo $youthBowling; ?>" name="youthBowling" />

               </div></td>

               <td><div align="center">

                 <h2>$10</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left"><strong>ANNUAL MEETING LUNCHEON</strong><br />

                 Saturday, 12:00 PM<br />

               </div></td>

               <td><div align="center">

                 <?php echo $meetingLuncheon; ?><input type="hidden" value="<?php echo $meetingLuncheon; ?>" name="meetingLuncheon" />

               </div></td>

               <td><div align="center">

                 <h2>N/C</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left"><strong>YOUTH WORKSHOP</strong><br />

               Saturday, 3:30 PM - 4:30 PM  <br />

               </div></td>

               <td><div align="center">

                 <?php echo $youthWorkshop; ?><input type="hidden" value="<?php echo $youthWorkshop; ?>" name="youthWorkshop" />

               </div></td>

               <td><div align="center">

                 <h2>N/C</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left"><strong>ADULT WORKSHOP</strong><br />

                 Saturday, 4:45 PM - 5:45 PM  <br />

               </div></td>

               <td><div align="center">

                 <?php echo $adultWorkshop; ?><input type="hidden" value="<?php echo $adultWorkshop; ?>" name="adultWorkshop" />

               </div></td>

               <td><div align="center">

                 <h2>N/C</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left"><strong>MSUSBC CELEBRATION GALA</strong><br />

               Saturday Evening<br />

               </div></td>

               <td><div align="center">

                 <?php echo $celebrationGala; ?><input type="hidden" value="<?php echo $celebrationGala; ?>" name="celebrationGala" />

               </div></td>

               <td><div align="center">

                 <h2>$25</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left"><strong>BREAKFAST WITH THE BOARD</strong><br />

               Sunday, 8:15 AM<br />

               </div></td>

               <td><div align="center">

                 <?php echo $breakfast; ?><input type="hidden" value="<?php echo $breakfast; ?>" name="breakfast" />

               </div></td>

               <td><div align="center">

                 <h2>$10</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left"><strong>USBC PRESENTATION</strong><br />

               Sunday, 9:00 AM - 10:30 AM  <br />

               </div></td>

               <td><div align="center">

                 <?php echo $usbcPresentation; ?><input type="hidden" value="<?php echo $usbcPresentation; ?>" name="usbcPresentation" />

               </div></td>

               <td><div align="center">

                 <h2>N/C</h2>

               </div></td>

             </tr>

             <tr>

               <td><div align="left">

                 <p><strong>MOBPA EXHIBITS and LUNCHEON BUFFET</strong><br />

                   Sunday, 11:00 AM - 3:00 PM&nbsp; Exhibits Open<br />

                 </p>

                 </div></td>

               <td><div align="center">

                 <?php echo $mobpaLuncheon; ?><input type="hidden" value="<?php echo $mobpaLuncheon; ?>" name="mobpaLuncheon" />

               </div></td>

               <td><div align="center">

                 <h2>N/C</h2>

               </div></td>

             </tr>

             <tr>

               <td colspan="3" bgcolor="#AFB1C6"><div align="center"><strong>- - - - -</strong></div>                 <div align="center"></div></td>

               </tr>

             <tr>

               <td colspan="3"><div align="center">

                 <table width="100%" border="0" cellpadding="3">

                   <tr>

                     <td colspan="2"><div align="center">

                       <h4>REGISTRANT INFORMATION</h4>

                     </div></td>

                     </tr>

                   <tr>

                     <td width="40%"><div align="right">Full Name:</div></td>

                     <td width="60%">

                       <div align="left"><input type="hidden" name="regName" value="<?php echo $regName; ?>" /><?php echo $regName; ?></div></td>

                   </tr>

                   <tr>

                     <td><div align="right">Address:</div></td>

                     <td><div align="left"><?php echo $regAddress1; ?><input type="hidden" value="<?php echo $regAddress1; ?>" name="regAddress1" /></div></td>

                   </tr>

                   <tr>

                     <td><div align="right"></div></td>

                     <td><div align="left"><?php echo $regAddress2; ?><input type="hidden" value="<?php echo $regAddress2; ?>" name="regAddress2" /></div></td>

                   </tr>

                   <tr>

                     <td><div align="right">City:</div></td>

                     <td><div align="left"><?php echo $regCity; ?><input type="hidden" value="<?php echo $regCity; ?>" name="regCity" /></div></td>

                   </tr>

                   <tr>

                     <td><div align="right">State:</div></td>

                     <td><div align="left"><?php echo $regState; ?><input type="hidden" value="<?php echo $regState; ?>" name="regState" /></div></td>

                   </tr>

                   <tr>

                     <td><div align="right">Zip Code:</div></td>

                     <td><div align="left"><?php echo $regZipCode; ?><input type="hidden" value="<?php echo $regZipCide; ?>" name="regZipCode" /></div></td>

                   </tr>

                   <tr>

                     <td><div align="right">Telephone:</div></td>

                     <td><div align="left"><?php echo $regTelephone; ?><input type="hidden" value="<?php echo $regTelephone; ?>" name="regTelephone" /></div></td>

                   </tr>

                   <tr>

                     <td><div align="right">Email Address:</div></td>

                     <td><div align="left"><?php echo $regEmail; ?><input type="hidden" value="<?php echo $regEmail; ?>" name="regEmail" /></div></td>

                   </tr>

                   <tr>

                     <td><div align="right">Association:</div></td>

                     <td><div align="left"><?php echo $regAssociation; ?><input type="hidden" value="<?php echo $regAssociation; ?>" name="regAssociation" /></div></td>

                   </tr>

                   <tr>

                     <td colspan="2"><hr /></td>

                     </tr>

                   <tr>

                     <td><div align="right">Subtotal:</div></td>

                     <td><?php echo "$".number_format($subTotal,2); ?></td>

                   </tr>

                   <tr>

                     <td><div align="right">Total Amount Due:</div></td>

                     <td><?php echo "$".number_format($totalAmount,2); ?>

                     

                     <input type="hidden" name="totalAmount" value="<?php echo "$".number_format($totalAmount,2);?>" />

                     &nbsp;&nbsp; <a href="paypalcharge.html">Why the difference?</a></td>

                   </tr>

                   <tr>

                     <td>&nbsp;</td>

                     <td>&nbsp;  <input type="hidden" name="cmd" value="_xclick" />

  <input type="hidden" name="bn" value="webassist.dreamweaver.4_5_0" />

  <input type="hidden" name="business" value="dennis.hacker@offthesheet.com" />

  <input type="hidden" name="item_name" value="Showcase" />

  <input type="hidden" name="item_number" value="Showcase2009" />

  <input type="hidden" name="amount" value="<?php echo number_format($totalAmount,2); ?>" />

  <input type="hidden" name="currency_code" value="USD" />

  <input type="hidden" name="shipping" value="0" />

  <input type="hidden" name="shipping2" value="0" />

  <input type="hidden" name="handling" value="" />

  <input type="hidden" name="return" value="http://www.mousbc.org/registrationsuccess-showcase.php" />

  <input type="hidden" name="cancel_return" value="http://www.mousbc.org/registration-showcase.php" />

  <input type="hidden" name="undefined_quantity" value="0" />

  <input type="hidden" name="receiver_email" value="dennis.hacker@offthesheet.com" />

  <input type="hidden" name="mrb" value="R-3WH47588B4505740X" />

  <input type="hidden" name="pal" value="ANNSXSLJLYR2A" />

  <input type="hidden" name="no_shipping" value="1" />

  <input type="hidden" name="no_note" value="0" />

  <input name="submit" onclick="javascript:document.showcasepro.submit()" type="image" src="http://images.paypal.com/images/x-click-but6.gif" alt="Make payments with PayPal, it's fast, free, and secure!" border="0" /> 

</td>

                   </tr>

                 </table>

               </div>                 <div align="center"></div></td>

               </tr>

           </table>

           </form>

         </div></td>

     </tr>

     <tr>

       <td>&nbsp;</td>

       <td>&nbsp;</td>

     </tr>

   </table>     </td>

   <td><img src="Images/SubPageFiles/spacer.gif" width="1" height="100" border="0" alt="" /></td>

  </tr>

  <tr>

   <td><img src="Images/SubPageFiles/spacer.gif" width="1" height="280" border="0" alt="" /></td>

  </tr>

  

  

  <tr>

   <td colspan="3" background="Images/SubPageFiles/MOUSBCSubPageShell_r7_c1.gif"><table width="100%" border="0" cellpadding="0">

     <tr>

       <td id="copyright" width="299" align="center"><?php include("copyright.inc.php"); ?></td>

       <td id="nav" width="655" align="center"><?php include("botnav.inc.php"); ?></td>

     </tr>

   </table></td>

   <td><img src="Images/SubPageFiles/spacer.gif" width="1" height="30" border="0" alt="" /></td>

  </tr>

</table>

</center>
 
 

</body>

</html>

<title><?php echo($title);?> 2009 Showcase Online Registration - MOUSBC.org</title>

Open in new window

0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 24461870
Have you considered using the PayPal "Instant Payment Notification" script to send this email?  It is how I would handle this sort of issue.  You will have access to all the PayPal data, and you can access your data base.  The session variables are not available, because the script is started asynchronously, but that has not been a problem for me.  Just a thought, ~Ray
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:DennisHacker
ID: 24463448
Thanks Ray.  I think the way I'm going to go with this is a javascript calculator on the original form that feeds this page.  This information isn't linked to a database, and the numbers of people that will be responding to these things aren't large yet, so there's really no need.

I guess what I was asking is pretty difficult to do.
0
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 24463464
I don't think it's too hard - just a few moving parts.  If you do not use the IPN and go with JS, plan on having a fallback that will degrade gracefully if the client has JS turned off.  In any case, good luck with it, and if you decide to try the IPN route and want some sample diagnostic scripts, just let us know.

Best regards, ~Ray
0
 

Author Comment

by:DennisHacker
ID: 24729083
We never landed on an answer.  I didn't come up with a solution, nor did anyone on here.  I'm OK with that, and I don't need to be scolded about being a responsible EE member.  I've been very responsive when asking for help on here, and I even asked advice on what to do with this question since no correct answer was provided.

angellll, if you had read the final couple of comments on this question, you would know the above, and wouldn't have written what you did.  I pay my money every month regularly.
0
 

Author Closing Comment

by:DennisHacker
ID: 31583358
Bonus, Ray!  
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 24729617
Thanks for the points - it's a very good question, ~Ray
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I didn’t use eM Client for long when I decided to swap to Outlook 2016. The reason for the switch is that it started asking for payment to continue some of its services after one month.   The problems I faced when I didn’t pay were:   I was not …
How can MDaemon MRK files and MSG files work together? We can also say that, how worldclient and Outlook connecter works, using both application collectively you can view your mails, contacts, calendar, task, notes. In this article you can unders…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now