Title: Execute PHP within Popup
Last modified: August 21, 2016

---

# Execute PHP within Popup

 *  Resolved [theunvarnished](https://wordpress.org/support/users/theunvarnished/)
 * (@theunvarnished)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/execute-php-within-popup/)
 * Hello,
 * Is there a way to safely execute PHP from within the popup? I have tried and 
   always get redirected to **[http://mysite.com/wp-admin/admin-ajax.php/blah](http://mysite.com/wp-admin/admin-ajax.php/blah)**.
   I am trying to have the popup link to a php generated link within the post that
   generates the popup. Any ideas?
 * Thanks,
 * theunvarnished.com
 * [https://wordpress.org/plugins/lightbox-pop/](https://wordpress.org/plugins/lightbox-pop/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [f1logic](https://wordpress.org/support/users/f1logic/)
 * (@f1logic)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/execute-php-within-popup/#post-4969361)
 * please use [http://wordpress.org/plugins/insert-php-code-snippet/](http://wordpress.org/plugins/insert-php-code-snippet/)
 *  Thread Starter [theunvarnished](https://wordpress.org/support/users/theunvarnished/)
 * (@theunvarnished)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/execute-php-within-popup/#post-4969390)
 * Prior to writing to you I had already tried the approach of writing a shortcode
   for the PHP. I used “Shortcode Exec PHP”, a plugin that does the same thing as
   the one you suggest, but it still did not work. I will try it again and see if
   maybe I did something wrong.
 * Thanks,
 * theunvarnished.com

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Execute PHP within Popup’ is closed to new replies.

 * ![](https://ps.w.org/lightbox-pop/assets/icon-128x128.png?rev=1845608)
 * [Lightbox Pop - Responsive Lightbox](https://wordpress.org/plugins/lightbox-pop/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lightbox-pop/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lightbox-pop/)
 * [Active Topics](https://wordpress.org/support/plugin/lightbox-pop/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lightbox-pop/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lightbox-pop/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [theunvarnished](https://wordpress.org/support/users/theunvarnished/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/execute-php-within-popup/#post-4969390)
 * Status: resolved