SHORTCODE ON MY PAYMENT FORM PAGE
- Code: Select all
success="thank-you/?subscr_id=%%subscr_id%%&item_name=%%item_name%%®ular=%%regular%%&recurring=%%recurring%%&initial_term=%%initial_term%%®ular_term=%%regular_term%%&full_name=%%full_name%%"
RESULTING URL
Note the strange "#038;" between var, after each "&". I think that's the problem.
- Code: Select all
https://www.mysite.com/signup/thank-you/?subscr_id=I-00JAFFJFJT1N&s2p-v=1304711482-cf65722cd2a942183f328a64c53fa1b6#038;item_name=Individual+membership%3A+%241+USD+%2F+Month+%28+recurring+charge%2C+for+ongoing+access+%29&regular=1.00&recurring=1.00&initial_term=7+D&regular_term=1+M&full_name=Brian+Westbrook
THANK-YOU PAGE TEMPLATE FILE PHP
Each replacement-code / url-var that i'm expecting is handled like this:
- Code: Select all
$thanks['subscr_id'] = htmlentities($_GET['subscr_id']);
$thanks['item_name'] = htmlentities($_GET['item_name']);
Then echo'd out to the page with
- Code: Select all
<p>Subscription ID, subscr_id: <?php echo $thanks['subscr_id']; ?></p>
<p>item_name: <?php echo $thanks['item_name']; ?></p>
THE PROBLEM
Only the subscr_id is working, the other vars fail to show up in the $_GET array. Here's my debug:
- Code: Select all
[_GET] => Array
(
[subscr_id] => I-00JAFFJFJT1N
[s2p-v] => 1304711482-cf65722cd2a942183f328a64c53fa1b6
)
[thanks] => Array
(
[subscr_id] => I-00JAFFJFJT1N
[item_name] =>
[regular] =>
[recurring] =>
[initial_term] =>
[regular_term] =>
[full_name] =>
)
Since the $_GET seems to break after the "s2p-v" variable (whatever that is), and the next character in the returned url is a "#" ... it seems like that is the start of the problem, breaking the other vars.
Any idea what's going on here? What the "#038;" is, and how to remove it?
Thanks!
Todd