Forum Moderators: coopster

Message Too Old, No Replies

PHP & frames; why is the full PHP code displayed in frame?

Client's site has frames; how do I get php to work in the frames?

         

mlkarie

8:39 am on Dec 8, 2003 (gmt 0)

10+ Year Member



Having completed a whole stack of PHP files, tested them (worked fine), I now have to let these pages be displayed in my client's website.
But said client has done his website in frames.

When I put in code like:

<frame name="main" src="myphpfile.php" >

what get's displayed in that frame is the full php code

Example: echo $name
instead of the actual name

so the browser is not sending the code to PHP first, it seems. How do I fix this?

I presume it's not a matter of, you can't have frames in a PHP/MySQL site.

Would be grateful for some help, thx.

mlkarie

9:18 am on Dec 8, 2003 (gmt 0)

10+ Year Member



Have already seen my own fault, sorry about posting this!

I had double-clicked on index.htm in Windows Explorer instead of opening the site via http:/localhost.

So everything is okay. Suppose one may as well leave this message on here in case any newbies have a similar problem.