wmguk Posted March 16, 2012 Share Posted March 16, 2012 Hey Guys, I'm using wordpress and attempting to pass and image name via php - <?php echo do_shortcode('[popup url="http://domain.com/enquire.php?prod_id=". echo $image->alttext ."]Enquire[/popup]'); ?> Breaks the code - the url becomes domain.com/currentpage not enquire.php <?php echo do_shortcode('[popup url="http://domain.com/enquire.php?prod_id=$image->alttext"]Enquire[/popup]'); ?> the URL shows as http://domain.com/enquire.php?prod_id=$image->alttext I cannot get it to display the actual alttext output... Any ideas how I can pass this info?... Quote Link to comment https://forums.phpfreaks.com/topic/259031-wordpress-simple-data-not-passing-to-form/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.