phpnoobonly Posted June 15, 2007 Share Posted June 15, 2007 hi im trying to setup paypal on a website being new to php i am finding it realy hard to get what i want.. Ok all i need to do is fetch variable data and send it to paypal, i just dont know how to go about it. the paypal code i have at the moment <?php ?> </fieldset> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="[email protected]"> <input type="hidden" name="item_name" value="session example"> <input type="hidden" name="amount" value="0.00"> <input type="hidden" name="return" value="http://paypaltech.com/Patrick/sessions/retrunpg.php?<?php echo strip_tags(SID);?>"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="GBP"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal"> </form> Ok im trying to work out how to add in the above code the variables i require from the below script ie amount and having problems setting the below script up so it will send it to paypal.. I am trying to get variable data from below scripts. <?php session_start(); ob_start(); require_once("header.php"); if($loginObj->validUser("sesMemberID")) { $smarty->assign("welFlag","1"); } $sesOrderID=$_SESSION["sesOrderID"]; $resQuery=mysql_query("SELECT a.*,b.vchItemNumber,b.vchProductName FROM vas_orderdetail as a, vas_products as b WHERE a.intOrderID='$sesOrderID' and a.intProductID=b.intProductID order by intOrderDetailID") or die('Could not get data: ref point 19: '.mysql_error()); $arrData=array(); if(mysql_num_rows($resQuery)>0) { while($row=mysql_fetch_array($resQuery,MYSQL_NUM)) { $row[4]=sprintf("%01.2f",$row[4]); $row[5]=sprintf("%01.2f",$row[5]); $arrData[]=$row; } mysql_free_result($resQuery); $arrOrderDetails=$arrData; } $rowOrder=getRow("vas_order","intOrderID",$sesOrderID); $subtotal=sprintf("%01.2f",$rowOrder[dblProductAmount]); $VATvalue=sprintf("%01.2f",$rowOrder[dblVatValue]); $CarriageCharge=sprintf("%01.2f",$rowOrder[dblCarriageCharge]); $OrderTotal=sprintf("%01.2f",$rowOrder[dblOrderValue]); $bcountry=GiveValue("intCountryID=".$rowOrder['intBillCountryID'],"Country","vas_country",0); $scountry=GiveValue("intCountryID=".$rowOrder['intShipCountryID'],"Country","vas_country",0); $smarty->assign("bcountry",$bcountry); $smarty->assign("scountry",$scountry); $smarty->assign("arrOrderDetails",$arrOrderDetails); $smarty->assign("rowOrder",$rowOrder); $smarty->assign("subtotal",$subtotal); $smarty->assign("VATvalue",$VATvalue); $smarty->assign("CarriageCharge",$CarriageCharge); $smarty->assign("OrderTotal",$OrderTotal); require_once("footer.php"); $smarty->display(FRONT_PATH."header.tpl"); $smarty->display(FRONT_PATH."review-order.tpl"); $smarty->display(FRONT_PATH."footer.tpl"); ?> this displays the users order details and amount and also uses the below php files to create the page. <?php /* Smarty version 2.6.8, created on 2006-11-22 10:23:11 compiled from review-order.tpl */ ?> <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); smarty_core_load_plugins(array('plugins' => array(array('modifier', 'stripslashes', 'review-order.tpl', 50, false),)), $this); ?> <td width="569" valign="top"> <table width="539" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="553" height="6" colspan="3"><img src="images/clr.gif" width="1" height="6" alt=""></td> </tr> <tr> <td colspan="3" class="title"><!-- InstanceBeginEditable name="title" -->Review Order<!-- InstanceEndEditable --></td> </tr> <tr> <td class="hr-line"><img src="images/clr.gif" width="1" height="1" alt=""></td> </tr> </table> <table width="539" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td height="8"></td> </tr> <tr> <td><!-- InstanceBeginEditable name="body" --> <table width="539" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td height="24"><a href="index.php" class="breadcrumb-normal" title="Home">Home</a> » <a href="shopping-cart.php" class="breadcrumb-normal" title="Home">Shopping Cart</a> » <a href="billing-shipping.php" class="breadcrumb-normal" title="Home">Billing & Shipping</a> » <strong class="breadcrumb-red-normal">Review Order</strong></td> </tr> <tr> <td valign="top"><br> <table width="539" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="21"><img src="images/bullet1.gif" width="21" height="20" alt=""></td> <td width="100%" class="tbl-bg"> Product Details </td> <td width="4"><img src="images/rht-crv.gif" width="4" height="20" alt=""></td> </tr> <tr> <td height="4" colspan="3"><img src="images/clr.gif" width="1" height="4" alt=""></td> </tr> <tr> <td colspan="3" valign="top" class="tbl-border2"> <form action="" method="post" name="form1"> <table width="100%" border="0" cellspacing="1" cellpadding="2" class="tdbglc"> <tr class="trbglc"> <td valign="top" class="td-heading"> Product No.</td> <td valign="top" class="td-heading">Product Name </td> <td valign="top" class="td-heading">Price (£)<br></td> <td valign="top" class="td-heading">Qty</td> <td valign="top" class="td-heading">Job Reference </td> <td align="right" valign="top" class="td-heading">Total (£) </td> </tr> <?php if ($this->_tpl_vars['arrOrderDetails'] != ""): ?> <?php unset($this->_sections['order']); $this->_sections['order']['name'] = 'order'; $this->_sections['order']['loop'] = is_array($_loop=$this->_tpl_vars['arrOrderDetails']) ? count($_loop) : max(0, (int)$_loop); unset($_loop); $this->_sections['order']['show'] = true; $this->_sections['order']['max'] = $this->_sections['order']['loop']; $this->_sections['order']['step'] = 1; $this->_sections['order']['start'] = $this->_sections['order']['step'] > 0 ? 0 : $this->_sections['order']['loop']-1; if ($this->_sections['order']['show']) { $this->_sections['order']['total'] = $this->_sections['order']['loop']; if ($this->_sections['order']['total'] == 0) $this->_sections['order']['show'] = false; } else $this->_sections['order']['total'] = 0; if ($this->_sections['order']['show']): for ($this->_sections['order']['index'] = $this->_sections['order']['start'], $this->_sections['order']['iteration'] = 1; $this->_sections['order']['iteration'] <= $this->_sections['order']['total']; $this->_sections['order']['index'] += $this->_sections['order']['step'], $this->_sections['order']['iteration']++): $this->_sections['order']['rownum'] = $this->_sections['order']['iteration']; $this->_sections['order']['index_prev'] = $this->_sections['order']['index'] - $this->_sections['order']['step']; $this->_sections['order']['index_next'] = $this->_sections['order']['index'] + $this->_sections['order']['step']; $this->_sections['order']['first'] = ($this->_sections['order']['iteration'] == 1); $this->_sections['order']['last'] = ($this->_sections['order']['iteration'] == $this->_sections['order']['total']); ?> <tr valign="top" class="trbglc"> <td class="tbl-lt-col"><?php echo ((is_array($_tmp=$this->_tpl_vars['arrOrderDetails'][$this->_sections['order']['index']]['7'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?> </td> <td class="tbl-lt-col"><?php echo ((is_array($_tmp=$this->_tpl_vars['arrOrderDetails'][$this->_sections['order']['index']]['8'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?> </td> <td class="tbl-lt-col"><?php echo $this->_tpl_vars['arrOrderDetails'][$this->_sections['order']['index']]['4']; ?> </td> <td class="tbl-lt-col"><?php echo $this->_tpl_vars['arrOrderDetails'][$this->_sections['order']['index']]['3']; ?> </td> <td class="tbl-lt-col"><?php echo $this->_tpl_vars['arrOrderDetails'][$this->_sections['order']['index']]['6']; ?> </td> <td class="tbl-lt-col" align="right"><?php echo $this->_tpl_vars['arrOrderDetails'][$this->_sections['order']['index']]['5']; ?> </td> </tr> <?php endfor; endif; ?> <tr class="trbglc"> <td> </td> <td> </td> <td> </td> <td colspan="2" align="right" class="td-heading">Sub-Total:</td> <td align="right" class="tbl-lt-col"><?php echo $this->_tpl_vars['subtotal']; ?> </td> </tr> <tr class="trbglc"> <td align="center"> </td> <td align="center"> </td> <td align="center"> </td> <td colspan="2" align="right" class="td-heading"><!-- Carriage (UK Only) -->Shipping:</td> <td align="right" class="tbl-lt-col"><?php echo $this->_tpl_vars['CarriageCharge']; ?> </td> </tr> <tr class="trbglc"> <td align="center"> </td> <td align="center"> </td> <td align="center"> </td> <td colspan="2" align="right" class="td-heading">VAT@ 17.5%: </td> <td align="right" class="tbl-lt-col"><?php echo $this->_tpl_vars['VATvalue']; ?> </td> </tr> <tr class="trbglc"> <td align="center"> </td> <td align="center"> </td> <td align="center"> </td> <td colspan="2" align="right" class="error">Order Total (£): </td> <td align="right" class="td-heading"><?php echo $this->_tpl_vars['OrderTotal']; ?> </td> </tr> <?php endif; ?> <tr class="trbglc"> <td align="right"> </td> <td> </td> <td align="center"> </td> <td align="right" class="error"> </td> <td align="right" class="td-heading"> </td> <td align="right" class="td-heading"> </td> </tr> </table> </form></td> </tr> </table> <br> <table width="539" border="0" cellspacing="0" cellpadding="0" class="tbl-border2"> <tr> <td width="50%"><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="tbl-border"> <tr> <td width="18" align="center" bgcolor="#507FB7"><img src="images/box-image.gif" alt="" width="6" height="6"></td> <td class="tbl-title"> Billing Address</td> </tr> </table></td> <td width="50%"><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="tbl-border"> <tr> <td width="18" align="center" bgcolor="#507FB7"><img src="images/box-image.gif" alt="" width="6" height="6"></td> <td class="tbl-title"> Shipping Address </td> </tr> </table></td> </tr> <tr> <td valign="top" class="tdbglc"><form name="form1" method="post" action=""> <table width="100%" border="0" cellspacing="1" cellpadding="2"> <tr class="trbglc"> <td align="right" class="tbl-lt-col">First Name:</td> <td class="tbl-lt-col"><?php echo ((is_array($_tmp=$this->_tpl_vars['rowOrder']['vchFirstName'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?> </td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Last Name:</td> <td class="tbl-lt-col"><?php echo ((is_array($_tmp=$this->_tpl_vars['rowOrder']['vchLastName'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?> </td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Email Address:</td> <td><a href="mailto:<?php echo $this->_tpl_vars['rowOrder']['vchEmail']; ?> " class="tbl-links" title="<?php echo $this->_tpl_vars['rowOrder']['vchEmail']; ?> "><?php echo $this->_tpl_vars['rowOrder']['vchEmail']; ?> </a></td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Address1:</td> <td class="tbl-lt-col"><?php echo ((is_array($_tmp=$this->_tpl_vars['rowOrder']['vchBillAddress1'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?> </td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Address2:</td> <td class="tbl-lt-col"><?php echo ((is_array($_tmp=$this->_tpl_vars['rowOrder']['vchBillAddress2'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?> </td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">City:</td> <td class="tbl-lt-col"><?php echo ((is_array($_tmp=$this->_tpl_vars['rowOrder']['vchBillCity'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?> </td> </tr> <tr class="trbglc"> <td align="right" valign="top" class="tbl-lt-col">State/Province:</td> <td class="tbl-lt-col"><?php echo ((is_array($_tmp=$this->_tpl_vars['rowOrder']['vchBillState'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?> </td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Postal Code: </td> <td class="tbl-lt-col"><?php echo $this->_tpl_vars['rowOrder']['vchBillZip']; ?> </td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Country:</td> <td class="tbl-lt-col"><?php echo $this->_tpl_vars['bcountry']; ?> </td> </tr> <tr class="trbglc"> <td align="right" valign="top" class="tbl-lt-col">Telephone No:</td> <td class="tbl-lt-col"><?php echo $this->_tpl_vars['rowOrder']['vchPhone']; ?> </td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Fax No:</td> <td class="tbl-lt-col"><?php echo $this->_tpl_vars['rowOrder']['vchFax']; ?> </td> </tr> <tr class="trbglc"> <td> </td> <td valign="top"> </td> </tr> </table> </form></td> <td valign="top" class="tdbglc"><form name="form3" method="post" action=""> <table width="100%" border="0" cellspacing="1" cellpadding="2"> <tr class="trbglc"> <td align="right" class="tbl-lt-col">First Name:</td> <td class="tbl-lt-col"><?php echo ((is_array($_tmp=$this->_tpl_vars['rowOrder']['vchShipFirstName'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?> </td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Last Name:</td> <td class="tbl-lt-col"><?php echo ((is_array($_tmp=$this->_tpl_vars['rowOrder']['vchShipLastName'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?> </td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Email Address:</td> <td><a href="mailto:<?php echo $this->_tpl_vars['rowOrder']['vchShipEmail']; ?> " class="tbl-links" title="<?php echo $this->_tpl_vars['rowOrder']['vchShipEmail']; ?> "><?php echo $this->_tpl_vars['rowOrder']['vchShipEmail']; ?> </a></td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Address1:</td> <td class="tbl-lt-col"><?php echo ((is_array($_tmp=$this->_tpl_vars['rowOrder']['vchShipAddress1'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?> </td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Address2:</td> <td class="tbl-lt-col"><?php echo ((is_array($_tmp=$this->_tpl_vars['rowOrder']['vchShipAddress2'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?> </td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">City:</td> <td class="tbl-lt-col"><?php echo ((is_array($_tmp=$this->_tpl_vars['rowOrder']['vchShipCity'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?> </td> </tr> <tr class="trbglc"> <td align="right" valign="top" class="tbl-lt-col">State/Province:</td> <td class="tbl-lt-col"><?php echo ((is_array($_tmp=$this->_tpl_vars['rowOrder']['vchShipState'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?> </td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Postal Code: </td> <td class="tbl-lt-col"><?php echo $this->_tpl_vars['rowOrder']['vchShipZip']; ?> </td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Country:</td> <td class="tbl-lt-col"><?php echo $this->_tpl_vars['scountry']; ?> </td> </tr> <tr class="trbglc"> <td align="right" valign="top" class="tbl-lt-col">Telephone No:</td> <td class="tbl-lt-col"><?php echo $this->_tpl_vars['rowOrder']['vchShipPhone']; ?> </td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Fax No:</td> <td class="tbl-lt-col"><?php echo $this->_tpl_vars['rowOrder']['vchShipFax']; ?> </td> </tr> <tr class="trbglc"> <td> </td> <td valign="top"> </td> </tr> </table> </form></td> </tr> <tr align="center"> <td height="35" colspan="2"><a href="billing-shipping.php"><img src="images/edit.gif" alt="Edit" width="43" height="18" border="0" title="Edit"></a> <a href="pl.php"<img src="images/paypal.gif" alt="Pay now with Paypal" width="127" height="18" border="0" title="Pay now with Paypal"></a> <a href="thankyou.php"><img src="images/complete-shopping.gif" alt="Complete Shopping" width="127" height="18" border="0" title="Complete Shopping"></a></td> </tr> </table> </td> </tr> </table> <!-- InstanceEndEditable --></td> </tr> </table></td> and also this..... <td width="569" valign="top"> <table width="539" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="553" height="6" colspan="3"><img src="images/clr.gif" width="1" height="6" alt=""></td> </tr> <tr> <td colspan="3" class="title"><!-- InstanceBeginEditable name="title" -->Review Order<!-- InstanceEndEditable --></td> </tr> <tr> <td class="hr-line"><img src="images/clr.gif" width="1" height="1" alt=""></td> </tr> </table> <table width="539" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td height="8"></td> </tr> <tr> <td><!-- InstanceBeginEditable name="body" --> <table width="539" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td height="24"><a href="index.php" class="breadcrumb-normal" title="Home">Home</a> » <a href="shopping-cart.php" class="breadcrumb-normal" title="Home">Shopping Cart</a> » <a href="billing-shipping.php" class="breadcrumb-normal" title="Home">Billing & Shipping</a> » <strong class="breadcrumb-red-normal">Review Order</strong></td> </tr> <tr> <td valign="top"><br> <table width="539" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="21"><img src="images/bullet1.gif" width="21" height="20" alt=""></td> <td width="100%" class="tbl-bg"> Product Details </td> <td width="4"><img src="images/rht-crv.gif" width="4" height="20" alt=""></td> </tr> <tr> <td height="4" colspan="3"><img src="images/clr.gif" width="1" height="4" alt=""></td> </tr> <tr> <td colspan="3" valign="top" class="tbl-border2"> <form action="" method="post" name="form1"> <table width="100%" border="0" cellspacing="1" cellpadding="2" class="tdbglc"> <tr class="trbglc"> <td valign="top" class="td-heading"> Product No.</td> <td valign="top" class="td-heading">Product Name </td> <td valign="top" class="td-heading">Price (£)<br></td> <td valign="top" class="td-heading">Qty</td> <td valign="top" class="td-heading">Job Reference </td> <td align="right" valign="top" class="td-heading">Total (£) </td> </tr> {if $arrOrderDetails neq ""} {section name=order loop=$arrOrderDetails} <tr valign="top" class="trbglc"> <td class="tbl-lt-col">{$arrOrderDetails[order].7|stripslashes}</td> <td class="tbl-lt-col">{$arrOrderDetails[order].8|stripslashes}</td> <td class="tbl-lt-col">{$arrOrderDetails[order].4}</td> <td class="tbl-lt-col">{$arrOrderDetails[order].3}</td> <td class="tbl-lt-col">{$arrOrderDetails[order].6}</td> <td class="tbl-lt-col" align="right">{$arrOrderDetails[order].5}</td> </tr> {/section} <tr class="trbglc"> <td> </td> <td> </td> <td> </td> <td colspan="2" align="right" class="td-heading">Sub-Total:</td> <td align="right" class="tbl-lt-col">{$subtotal}</td> </tr> <tr class="trbglc"> <td align="center"> </td> <td align="center"> </td> <td align="center"> </td> <td colspan="2" align="right" class="td-heading"><!-- Carriage (UK Only) -->Shipping:</td> <td align="right" class="tbl-lt-col">{$CarriageCharge}</td> </tr> <tr class="trbglc"> <td align="center"> </td> <td align="center"> </td> <td align="center"> </td> <td colspan="2" align="right" class="td-heading">VAT@ 17.5%: </td> <td align="right" class="tbl-lt-col">{$VATvalue}</td> </tr> <tr class="trbglc"> <td align="center"> </td> <td align="center"> </td> <td align="center"> </td> <td colspan="2" align="right" class="error">Order Total (£): </td> <td align="right" class="td-heading">{$OrderTotal}</td> </tr> {/if} <tr class="trbglc"> <td align="right"> </td> <td> </td> <td align="center"> </td> <td align="right" class="error"> </td> <td align="right" class="td-heading"> </td> <td align="right" class="td-heading"> </td> </tr> </table> </form></td> </tr> </table> <br> <table width="539" border="0" cellspacing="0" cellpadding="0" class="tbl-border2"> <tr> <td width="50%"><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="tbl-border"> <tr> <td width="18" align="center" bgcolor="#507FB7"><img src="images/box-image.gif" alt="" width="6" height="6"></td> <td class="tbl-title"> Billing Address</td> </tr> </table></td> <td width="50%"><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="tbl-border"> <tr> <td width="18" align="center" bgcolor="#507FB7"><img src="images/box-image.gif" alt="" width="6" height="6"></td> <td class="tbl-title"> Shipping Address </td> </tr> </table></td> </tr> <tr> <td valign="top" class="tdbglc"><form name="form1" method="post" action=""> <table width="100%" border="0" cellspacing="1" cellpadding="2"> <tr class="trbglc"> <td align="right" class="tbl-lt-col">First Name:</td> <td class="tbl-lt-col">{$rowOrder.vchFirstName|stripslashes}</td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Last Name:</td> <td class="tbl-lt-col">{$rowOrder.vchLastName|stripslashes}</td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Email Address:</td> <td><a href="mailto:{$rowOrder.vchEmail}" class="tbl-links" title="{$rowOrder.vchEmail}">{$rowOrder.vchEmail}</a></td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Address1:</td> <td class="tbl-lt-col">{$rowOrder.vchBillAddress1|stripslashes}</td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Address2:</td> <td class="tbl-lt-col">{$rowOrder.vchBillAddress2|stripslashes}</td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">City:</td> <td class="tbl-lt-col">{$rowOrder.vchBillCity|stripslashes}</td> </tr> <tr class="trbglc"> <td align="right" valign="top" class="tbl-lt-col">State/Province:</td> <td class="tbl-lt-col">{$rowOrder.vchBillState|stripslashes}</td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Postal Code: </td> <td class="tbl-lt-col">{$rowOrder.vchBillZip}</td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Country:</td> <td class="tbl-lt-col">{$bcountry}</td> </tr> <tr class="trbglc"> <td align="right" valign="top" class="tbl-lt-col">Telephone No:</td> <td class="tbl-lt-col">{$rowOrder.vchPhone} </td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Fax No:</td> <td class="tbl-lt-col">{$rowOrder.vchFax}</td> </tr> <tr class="trbglc"> <td> </td> <td valign="top"> </td> </tr> </table> </form></td> <td valign="top" class="tdbglc"><form name="form3" method="post" action=""> <table width="100%" border="0" cellspacing="1" cellpadding="2"> <tr class="trbglc"> <td align="right" class="tbl-lt-col">First Name:</td> <td class="tbl-lt-col">{$rowOrder.vchShipFirstName|stripslashes}</td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Last Name:</td> <td class="tbl-lt-col">{$rowOrder.vchShipLastName|stripslashes}</td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Email Address:</td> <td><a href="mailto:{$rowOrder.vchShipEmail}" class="tbl-links" title="{$rowOrder.vchShipEmail}">{$rowOrder.vchShipEmail}</a></td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Address1:</td> <td class="tbl-lt-col">{$rowOrder.vchShipAddress1|stripslashes}</td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Address2:</td> <td class="tbl-lt-col">{$rowOrder.vchShipAddress2|stripslashes}</td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">City:</td> <td class="tbl-lt-col">{$rowOrder.vchShipCity|stripslashes}</td> </tr> <tr class="trbglc"> <td align="right" valign="top" class="tbl-lt-col">State/Province:</td> <td class="tbl-lt-col">{$rowOrder.vchShipState|stripslashes}</td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Postal Code: </td> <td class="tbl-lt-col">{$rowOrder.vchShipZip}</td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Country:</td> <td class="tbl-lt-col">{$scountry}</td> </tr> <tr class="trbglc"> <td align="right" valign="top" class="tbl-lt-col">Telephone No:</td> <td class="tbl-lt-col">{$rowOrder.vchShipPhone} </td> </tr> <tr class="trbglc"> <td align="right" class="tbl-lt-col">Fax No:</td> <td class="tbl-lt-col">{$rowOrder.vchShipFax}</td> </tr> <tr class="trbglc"> <td> </td> <td valign="top"> </td> </tr> </table> </form></td> </tr> <tr align="center"> <td height="35" colspan="2"><a href="billing-shipping.php"><img src="images/edit.gif" alt="Edit" width="43" height="18" border="0" title="Edit"></a> <a href="pl.php"<img src="images/paypal.gif" alt="Pay now with Paypal" width="127" height="18" border="0" title="Pay now with Paypal"></a> <a href="thankyou.php"><img src="images/complete-shopping.gif" alt="Complete Shopping" width="127" height="18" border="0" title="Complete Shopping"></a></td> </tr> </table> </td> </tr> </table> <!-- InstanceEndEditable --></td> </tr> </table></td> now i cant find anywhere a tutorial or anything on how i can set the first paisted script to pick up the info i need to send to paypal I am looking for tutorials or advice on how i can achieve sending the order full amount once i have an example i can work the rest i think :/ Thanks..... Link to comment https://forums.phpfreaks.com/topic/55768-help-needed-on-paypal-subject/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.