PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

PHP code after post/page success shortcode

s2Member Plugin. A Membership plugin for WordPress®.

PHP code after post/page success shortcode

Postby sensei » January 15th, 2012, 3:34 pm

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!
User avatar
sensei
Registered User
Registered User
 
Posts: 19
Joined: April 19, 2011

Re: PHP code after post/page success shortcode

Postby Raam Dev » January 18th, 2012, 2:12 pm

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'];
?>
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 10 guests

cron