I cannot get the value for the Access Code named pair into the customers email. I have worked on this most of the night and have tried everything that I can read about this.
This is the clearest example that I found:
PayPal Button:
<input type="hidden" name="on0" value="CustomID">
<input type="hidden" name="os0" value="<?=$userdata['user_id']?>">
IPN Script:
$customid = $_POST['option_selection1'];
I believe these are the same values that would be used to send size and color options through eCart. An abbreviated section of the specific code is noted below. The confirm.php is sending the correct values and they appear in paypal’s onscreen cart and payment email. eCart is generating a unique value for each of the two random codes and for each product. I believe that I am not grabbing and setting the correct value from the IPN post. I have tried: no0, ns0, no0_, ns0_, option_selection1, option_select1, option_amount1. What is the correct code for the IPN page so that I can retrieve the values from the Post? Please help.
** EDTITED confirm.php EDTITED ****************************
<input type="hidden" name="on0_<?php echo $Cart_Index+1; ?>" id="on0_<?php echo $Cart_Index+1; ?>" value="Code 1" />
<input type="hidden" name="os0_<?php echo $Cart_Index+1; ?>" id="os0_<?php echo $Cart_Index+1; ?>" value="<?php echo $Cart->DisplayInfo("Code1"); ?>" />
<input type="hidden" name="on1_<?php echo $Cart_Index+1; ?>" id="on1_<?php echo $Cart_Index+1; ?>" value="Code 2" />
<input type="hidden" name="os1_<?php echo $Cart_Index+1; ?>" id="os1_<?php echo $Cart_Index+1; ?>" value="<?php echo $Cart->DisplayInfo("Code2"); ?>" />
** EDTITED pp_IPN.php EDTITED ****************************
$ATC_Code1 = "".$_POST["option_selection1".($displayIndex+1)] ."";
$ATC_Code2 = "".$_POST["option_selection2".($displayIndex+1)] ."";
$ATC_DetailOption1 = "";
$ATC_DetailOption2 = "";
** EDTITED WAUE_pp_IPN_1.php EDTITED *********************
$MailBody = $MailBody . " <p style=\"margin:0 0 2px 0;\">Option/Code 1:";
$MailBody = $MailBody . $Cart->DisplayInfo("Code1");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . " <p style=\"margin:0 0 2px 0;\">Option/Code 2:";
$MailBody = $MailBody . $Cart->DisplayInfo("Code2");
******************************************************