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
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)...
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) {...
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...
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; ?>" >...
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;?>...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.