CraigMartin Posted November 30, 2011 Share Posted November 30, 2011 Cant seem to get this to work. The variable does echo the url. What is the correct way to use the variable inside the iframe? $url = $db->loadResult(); <iframe src="<?php echo $url; ?>"width="450" height="259" frameborder="0" allowfullscreen></iframe> Quote Link to comment https://forums.phpfreaks.com/topic/252089-using-a-php-variable-in-iframe/ Share on other sites More sharing options...
btherl Posted November 30, 2011 Share Posted November 30, 2011 The usage of $url looks fine to me. Can you try putting a space in front of "width" ? Quote Link to comment https://forums.phpfreaks.com/topic/252089-using-a-php-variable-in-iframe/#findComment-1292482 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.