Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. lukefred76

    Need help completing items in cart script

    ok, so i've solved my own post. yipeeee What i needed to do is count the array. count($_POST['ppres']); i then have the number i wanted and added 1 if the user wants the subscription. Lovely. blx
  2. lukefred76

    Need help completing items in cart script

    so im still plugging away at this. I suppose what im trying to do is "loosely" something like this, but under if ($subscription == "yes") below, the number for $count needs to be one more than the last foreach ($_POST['ppres'] number. <? $count = 1; foreach ($_POST['ppres'] as $k => $v)...
  3. lukefred76

    Need help completing items in cart script

    Just to add a little more detail and to try and simplify what im asking. Basically the following works fine as it counts through the items that have been selected by the user and displays them in the correct format for paypal. <? $count = 1; foreach ($_POST['ppres'] as $k => $v) {...
  4. lukefred76

    Need help completing items in cart script

    ok, there was a bit of scrip missing from the first piece of code in my post <h1 style="margin-bottom:0;">Subscription Service</h1> <div> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="pandp" bgcolor="#FFFF00"> <tr> <td colspan="2">Annual subscription for just £49.99...
  5. lukefred76

    Need help completing items in cart script

    Hi, I'm working on a sml shop basket and need some help with a bit of code. I have a simple form which allows users to select thedocs they wish to purchase and if they wnt to purchase a subscription service... <form method="POST" name="selectionForm" action="<?php echo $PHP_SELF; ?>" >...
  6. lukefred76

    a little php help needed to finish paypal pdt intergration please!

    please ignore - there was a small error - all fixed thanx bl
  7. lukefred76

    a little php help needed to finish paypal pdt intergration please!

    Hi jpadie, Sorry, this will be the last question I've been trying to use your code... <?php for($i=1; $i<=$numItems; $i++): ?> <?php foreach($fields as $f): ?> <?php echo preg_replace('/\+/',' ', ${$f . $i});?> <?php endforeach; ?> <?php echo"<br />";?> <?php endfor;?>...
  8. lukefred76

    a little php help needed to finish paypal pdt intergration please!

    Hi jpadie, Sorry for the delay in replying. Thank you very much for your help with this. truly appreciated. bl
  9. lukefred76

    a little php help needed to finish paypal pdt intergration please!

    ok i probably should have included everything that pp returns.. Array ( [status] => SUCCESS [mc_gross] => 537.99 [invoice] => WP81724869 [protection_eligibility] => Eligible [address_status] => confirmed [item_number1] => SKU001 [tax] => 0.00 [item_number2] => SKU040 [payer_id] =>...
  10. lukefred76

    a little php help needed to finish paypal pdt intergration please!

    Hi Jpadie, Thanks for coming back to me so quick. I tried your code but it gives me a "Invalid argument supplied for foreach() " bl
  11. lukefred76

    a little php help needed to finish paypal pdt intergration please!

    Hi, I need help to finish this pdt intergration. I've been working with the following code which is fab but i need it to do one final thing. The code is this... $this_url = $_SERVER["REQUEST_URI"]; $var_set = explode("?", $this_url); $paypal_transaction_token = ''; $payment_status...

Part and Inventory Search

Back
Top