scamrwordpressadmin
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form DB] How to pass FORMNAME as variableHi Michael,
Thanks for the links to the articles, and the code.
I read the articles and tried the code, and several variations, but am not getting anywhere. Nothing is explicit about substituting in the form name, and so I wonder if there’s something different there?
When I use the above code, my table data just contains the actual field placeholders (ie. ${your-name} ${your-email} etc.). If I hardcode the form name in, the table prints fine, so I believe that part of my code works great.
For some reason, the shortcode isn’t getting the form name from the $_POST(trail)
Any other ideas?
Thanks
Forum: Plugins
In reply to: [Contact Form DB] How to pass FORMNAME as variableHi Michael,
Sorry for not being more clear.
I have a html page and I am using a shortcode, like this:
[cfdb-html form=”Dutchman Trail” show=”your-name,your-email,your-phone,can-drive,Num-hikers” limit=”20″ orderby=”Submitted desc”]
The output is displayed in table format on that page.
All works great – your plug in made that very easy!
What I would like to do is replace the hard coded form name “Dutchman Trail” with a variable. The goal is to have one page where I can display the hikers that have signed up for any hike, and then print out that page. The only thing that will change between hikes is the hike name itself (ie: the form name).
If there is an easier way to print out selected columns from a specific form, I’m all for that too. Currently the table of signed up hikers is part of a larger page (see above) and we don’t want to print the whole page – just the hikers who have signed up for that hike.
The php code was just my way of trying to assign the hike name to a variable (I’m new at this, so most likely there is a much better way to go about that too.)
Thanks!