Page 1 of 1

PHP code after post/page success shortcode

PostPosted: January 15th, 2012, 3:34 pm
by sensei
Hello Everyone,

I am hitting a mental road block today and I need your help.

I am selling access to a specific post page and I have a success= shortcode variable which is working perfectly after the purchase.

Here is my code (sanitized)

Code: Select all
success="http://www.mysite.com/sandbox-thank-you-page/?sp_access_url=%%sp_access_url%%"


On my thank you page, what is the php code to grab the ?sp_access_url=%%sp_access_url%% that is being sent with a successful transaction?

Basic I know, but I can't get it working today. To the coffee pot!

Thanks for your help!

Re: PHP code after post/page success shortcode

PostPosted: January 18th, 2012, 2:12 pm
by Raam Dev
You can output query variables with PHP using $_GET['<query_var>']:

Code: Select all

<?php
echo "This is the access URL: " $_GET['sp_access_url'];
?>