How to get Post Snippet Variable in php code
-
Hi,
I have a page with this post snippet on it:
[form1 page="abc"]
Because the form is so long and complex I have it in a php file, so in the Post Snippet I have:
include('content/form1.php');
Now in form1.php I want to put the value of the ‘page’ variable in a hidden form field. Using {page} in the php file doesn’t work. How do I access the variable in the php code? Is it possible?
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to get Post Snippet Variable in php code’ is closed to new replies.