Answer the question
In order to leave comments, you need to log in
How to run the desired php code on button click?
How to write a string to execute PHP code on click?
Here is more specific:
there is php-code:
<?php echo do_shortcode( '[browser-shot url="http://mail.ru/" width="700"]Add Caption[/browser-shot]' ); ?>
Answer the question
In order to leave comments, you need to log in
Make an empty form, the button will be Submit, and the action is this code of yours.
make a button and put a request on it, so the php script will run without reloading the page (maybe this is important)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question