Payment link will not generate PHP vars into values
-
My site runs with WP 4.3 + Avada 3.8.6.1 Theme.
On a subscription page there are several payment buttons with links.
I have to know the ID – Name – Email from each user.
The page show the $GLOBALS correct when use shortcodes [insert_php].
If I echo the $GLOBALS within [insert_php] it works great on the page.
[insert_php]echo $GLOBALS[‘user_id’];[/insert_php]
result: 8922 // userid
[insert_php]echo $GLOBALS[‘user_lastname’];[/insert_php]
result: customer lastnameProblem is the url link. I have tried several possibilities to get the PHP $GLOBALS into the link. See below the result of an url link.
https://www.pay.nl/payment/SL-9839-2480/3Lc2c5c/?amount_min=7497&extra1%5BCID%5d=%5Binsert_php%5Decho $GLOBALS[‘user_id’];[/insert_php]&extra2%5BNaam%5D=[insert_php]echo $GLOBALS[‘user_lastname’];[/insert_php]&extra3%5BEmail%5D=[insert_php]echo $GLOBALS[‘user_email’];[/insert_php]
Has someone of you an idea how to solve this.
- The topic ‘Payment link will not generate PHP vars into values’ is closed to new replies.