jmarian1
11-07-2009, 02:30 AM
Hi. Please help. I have a credit card donation page and what I wanted to do is after they click the submit button and transaction is successful I wanted to capture the donation amount they enter from the donation page and show it to the next page. I know that is possible but I just don't know how to do it. I am still learning using PHP and still consider as a baby. My first page form looks like below which needs to authorize the transaction by clicking the submit button. <h2>Donation Information</h2>
<fieldset class="radiogroup<?php echo highlight('donate_amount'); ?> ">
<legend>Please specify the amount of money you would like to give.<b style="color:#FF0000">*</b></legend>
<?php foreach ($preset_amounts as $amount) : ?>
<label><input name="donate_amount" id="donate_amount<?php echo $amount; ?>" class="radio" type="radio"
value="<?php echo $amount; ?>" <?php echo helper_checked($form['donate_amount'] == $amount) ?>
onclick="CalculateTotal(this.value,99);" />$<?php echo $amount; ?></label>
<?php endforeach; ?>
<br />
<label id="fld-donate_other"><input id="donate_other" name="donate_amount" class="radio" type="radio"
value="other" <?php echo helper_checked($form['donate_amount'] == 'other') ?>
onclick="document.getElementById('donate_amount_other').disabled=false;" /> Other </label>
<div id="fld-donate_amount_other" class="formfield" onclick="document.getElementById('donate_amount_other').disabled=false; document.getElementById('donate_other').checked=true; document.getElementById('donate_amount_other').focus();">
<label for="donate_amount_other">Other Amount: $</label>
<input id="donate_amount_other" name="donate_amount_other" class="text" type="text"
value="<?php safeEcho($form['donate_amount_other']) ?>" <?php echo helper_disabled(!$form['donate_amount_other']); ?> onchange="CalculateTotal(this.value,99);" />
</div>
<fieldset class="buttons" >
<input type="submit" name="do" value="Submit" onClick="CalculateTotal(this.value,99);" />
</fieldset>
and once the transaction is complete and successful, I'd like the user to give an option and send them to another page where they can enter more information but I wanted to retrieve one information from the first page to the second page after the transaction is successful. My second page should look like below which the donation amount should capture automatically from the previous page:
<label>Donation Amount: $</label>
<input name="TotalDonate" id="TotalDonate" type="text" maxlength="10" readonly="true" onClick="CalculateTotal(this.value,99);" />
Can someone please help? Thanks in advance.
<fieldset class="radiogroup<?php echo highlight('donate_amount'); ?> ">
<legend>Please specify the amount of money you would like to give.<b style="color:#FF0000">*</b></legend>
<?php foreach ($preset_amounts as $amount) : ?>
<label><input name="donate_amount" id="donate_amount<?php echo $amount; ?>" class="radio" type="radio"
value="<?php echo $amount; ?>" <?php echo helper_checked($form['donate_amount'] == $amount) ?>
onclick="CalculateTotal(this.value,99);" />$<?php echo $amount; ?></label>
<?php endforeach; ?>
<br />
<label id="fld-donate_other"><input id="donate_other" name="donate_amount" class="radio" type="radio"
value="other" <?php echo helper_checked($form['donate_amount'] == 'other') ?>
onclick="document.getElementById('donate_amount_other').disabled=false;" /> Other </label>
<div id="fld-donate_amount_other" class="formfield" onclick="document.getElementById('donate_amount_other').disabled=false; document.getElementById('donate_other').checked=true; document.getElementById('donate_amount_other').focus();">
<label for="donate_amount_other">Other Amount: $</label>
<input id="donate_amount_other" name="donate_amount_other" class="text" type="text"
value="<?php safeEcho($form['donate_amount_other']) ?>" <?php echo helper_disabled(!$form['donate_amount_other']); ?> onchange="CalculateTotal(this.value,99);" />
</div>
<fieldset class="buttons" >
<input type="submit" name="do" value="Submit" onClick="CalculateTotal(this.value,99);" />
</fieldset>
and once the transaction is complete and successful, I'd like the user to give an option and send them to another page where they can enter more information but I wanted to retrieve one information from the first page to the second page after the transaction is successful. My second page should look like below which the donation amount should capture automatically from the previous page:
<label>Donation Amount: $</label>
<input name="TotalDonate" id="TotalDonate" type="text" maxlength="10" readonly="true" onClick="CalculateTotal(this.value,99);" />
Can someone please help? Thanks in advance.