i have a iframe that has a php var in it that seems to give me an error in ie6. <iframe src="http://www.myserver.com/myevent.php?myusername=<?php echo $row_Recordset1['username'];?>" width="250" height="300" scrolling="auto" frameborder="0" style="border:10px ridge #ffffff" ></iframe> HTML: when i look at it in sourceview this is how it looks <iframe src="http://www.myserver.com/myevent.php?myusername=username" width="250" height="300" scrolling="auto" frameborder="0" style="border:10px ridge #ffffff" ></iframe> HTML: if i put a quote in fromt of the php echo it doesnt throw an error but the script doesnt work. If ineed to i can go thru the many pages that use this var and strreplace the quotes. but i would rather figure why in the hell it wants a quote infront of the username var thanks
As far as I have understood, there is no problem with the script. It is giving the expected output. You haven't specified where you are getting the error. Is it inside the Iframe? In that case, the problem is in the file 'myevent.php'.
YEP THE SCRIPT works fine. I only noticed the error being reported in the lower left hand corner of ie 6. i clicked on the error icon and it had a dialog box that said unterminated string constant at the url in the iframe. it doesnt come up in ie 7. it works in firefox 1.5 and 2.0. I am only concerned that it might affect something down the road if i am not compliant. I just dont understand why the url is throwing an error. maybe its just because ie sucks. I am only trying to cover all my bases. Well thanks for the help
As per your description there is a JavaScript error in your IFrame. Becoz an error in HTML syntax will not be shown by the msg box you specified. It is for reporting JavaScript errors.