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?... 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
Archived
This topic is now archived and is closed to further replies.