yes you are correct that the subscription is made after they insert all the information and get back to my site so the info can be entered into the DB. all that worked until I add the _xclick-subscription
now the user gets back to my site and the subscription gets created on my paypal account and the info DOESN"T get entered. it seems that paypal isn't sending back a POST so my script can execute.
here is my form code, and if you read the manual on page 12 of the IPN Manual: using IPN with Subscriptions and you will see that none of these variables are in that manual. that is why they are so confusing. if you read the subscription manual it doesn't do IPN. and this form work up to the subscription but paypal sends back a INVALID code.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">\n";
<input type="hidden\" name="cmd" value="_xclick-subscriptions">\n";
<input type="hidden" name="business" value="paypal_bot@boxedart.com">\n";
<input type="hidden" name="item_number" value="{$username}">\n";
<input type="hidden" name="invoice" value="{$id}">\n";
<input type="hidden" name="a3" value="19.95">\n";
<input type="hidden" name="p3" value="1">\n";
<input type="hidden" name="t3" value="Y">\n";
<input type="hidden" name="src" value="1">\n";
<input type="hidden" name="sra" value="1">\n";
<input type="hidden" name="recurring" value="1">\n";
<input type="hidden" name="reattempt" value="0">\n";
<input type="hidden" name="no_shipping" value="1">\n";
<input type="hidden" name="custom" value="{$_login}">\n";
<input type="hidden" name="return" value="".SITE_URL."/phpshop/ipntest.php ">\n";
<input type="submit" value="Pay with Paypal" name="submit\">\n";
</form>\n";
http://www.snippetlibrary.com