943,584 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 976
  • PHP RSS
Apr 22nd, 2009
0

PHP and HTML and IFRAME problem

Expand Post »
I included a file in one of my sites via an iframe (simplest solution and by FAR not permanent), just to get a feel for the way it might look on the site

However, after adding the iframe to the site, i have no other data, the page is saved as php, just jumped out of php to add the iframe (doing so in php makes no differance)

But the page is black for all BUT the iframe, any help would be appreciated and i am puzzled

PHP Syntax (Toggle Plain Text)
  1. <script language="javascript" type="text/javascript">setTimeout("location.reload();",1000);</script>
  2. <?PHP
  3.  
  4. echo date("l F d, Y, h:i:s");
  5.  
  6. ?>

that a much more basic webpage, this webpage shows nothing as well, all it is supposed to do is show the i frame, and echo the date / time

it will not echo the date / time, only display the iframe

its prolly something stupid
Similar Threads
Reputation Points: 10
Solved Threads: 4
Junior Poster
Merlin33069 is offline Offline
126 posts
since May 2008
Apr 22nd, 2009
0

Re: PHP and HTML and IFRAME problem

That code works perfectly for me so perhaps it's the html code on the main page used to include the iframe. The code I used to include the iframe is as follows:
html Syntax (Toggle Plain Text)
  1. <iframe src='frame.php' width=300 height=30>Iframe Not supported</iframe>
Also if you want to know what language to do the proper vision in I would suggest pure javascript and a div tag because every second a javascript function could update the contents of what is inside the div tag using basic maths.
Sponsor
Featured Poster
Reputation Points: 410
Solved Threads: 258
Occupation: Genius
cwarn23 is offline Offline
3,004 posts
since Sep 2007
Apr 22nd, 2009
0

Re: PHP and HTML and IFRAME problem

like cwarn suggested, try using JS to call the iframe, , then display the php date.
if you need more help, please paste your code from the main page and the iframe.
thanks
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
sassenach is offline Offline
61 posts
since Mar 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: how to validate value in drop down menu in php
Next Thread in PHP Forum Timeline: PHP





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC