Robertforbes Posted November 16, 2008 Share Posted November 16, 2008 <IFRAME name="shoutbox" SRC="http://www.website.com/shoutbox/" WIDTH="500" HEIGHT="100" scrolling="no" frameborder="1" marginwidth="5" marginheight="5"></IFRAME> Could someone please convert this into PHP for me? Link to comment https://forums.phpfreaks.com/topic/132895-converting-html-into-php/ Share on other sites More sharing options...
BoltZ Posted November 16, 2008 Share Posted November 16, 2008 Uh.. <?php <IFRAME name="shoutbox" SRC="http://www.website.com/shoutbox/" WIDTH="500" HEIGHT="100" scrolling="no" frameborder="1" marginwidth="5" marginheight="5"></IFRAME>'; ?> This belongs in the php section Link to comment https://forums.phpfreaks.com/topic/132895-converting-html-into-php/#findComment-691096 Share on other sites More sharing options...
haku Posted November 16, 2008 Share Posted November 16, 2008 The question doesn't really make sense. You can't convert HTML to PHP, they are different things. You can output HTML with PHP, but why bother - just close the php tags before the iframe statement, then reopen them after the iframe statement. Link to comment https://forums.phpfreaks.com/topic/132895-converting-html-into-php/#findComment-691144 Share on other sites More sharing options...
BoltZ Posted November 16, 2008 Share Posted November 16, 2008 Yea I looked at my post and im sorry guys I forgot the echo ' but i closed it already Sorry Link to comment https://forums.phpfreaks.com/topic/132895-converting-html-into-php/#findComment-691148 Share on other sites More sharing options...
Robertforbes Posted November 16, 2008 Author Share Posted November 16, 2008 Yea I looked at my post and im sorry guys I forgot the echo ' but i closed it already Sorry Could someone give me the full correct code with the echo included please? Link to comment https://forums.phpfreaks.com/topic/132895-converting-html-into-php/#findComment-691318 Share on other sites More sharing options...
trq Posted November 16, 2008 Share Posted November 16, 2008 Yea I looked at my post and im sorry guys I forgot the echo ' but i closed it already Sorry Could someone give me the full correct code with the echo included please? Why? Just exit php insert your code, then open php again if need be. Link to comment https://forums.phpfreaks.com/topic/132895-converting-html-into-php/#findComment-691328 Share on other sites More sharing options...
Robertforbes Posted November 16, 2008 Author Share Posted November 16, 2008 Yea I looked at my post and im sorry guys I forgot the echo ' but i closed it already Sorry Could someone give me the full correct code with the echo included please? Why? Just exit php insert your code, then open php again if need be. I have no idea what that means? ??? Link to comment https://forums.phpfreaks.com/topic/132895-converting-html-into-php/#findComment-691341 Share on other sites More sharing options...
trq Posted November 16, 2008 Share Posted November 16, 2008 <?php /// php goes in here ?> <IFRAME name="shoutbox" SRC="http://www.website.com/shoutbox/" WIDTH="500" HEIGHT="100" scrolling="no" frameborder="1" marginwidth="5" marginheight="5"></IFRAME> <?php // more php goes in here ?> Link to comment https://forums.phpfreaks.com/topic/132895-converting-html-into-php/#findComment-691402 Share on other sites More sharing options...
BoltZ Posted November 16, 2008 Share Posted November 16, 2008 Or <?php echo '<IFRAME name="shoutbox" SRC="http://www.website.com/shoutbox/" WIDTH="500" HEIGHT="100" scrolling="no" frameborder="1" marginwidth="5" marginheight="5"></IFRAME>'; ?> But that does the same thing iff you were to not even use php....whats the point of encasing it in php tags. Link to comment https://forums.phpfreaks.com/topic/132895-converting-html-into-php/#findComment-691602 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.