Execute snippet on button click
-
Hello,
your PHP snippet tool works generally very well for me, but there is one problem that I cannot resolve. I want to place a “Download” button on my page. By clicking it, a PHP script should be excecuted that creates the download Content. Usually, one would do it like this:
<form action="download.php"> <input type="submit" value="Download"> </form>When I try this with PHP Code snippets and I replace the download.php with the shortcode, i.e.
`<form action=[wbcr_php_snippet id=”9″]>’
it does not work. Can you enlighten me how to run a snippet while clicking on a button?
Thanks,
Stefan
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Execute snippet on button click’ is closed to new replies.