By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,215 Members | 1,005 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,215 IT Pros & Developers. It's quick & easy.

PHP and FRAMES/NOFRAMES question

P: n/a
hello all,
i am using FRAMES on my PHP site, basically i am using just on frame
with the entire site inside. this is mainly for cosmetics so that
http://www.mydomain.com always is displayed in the address bar instead
of every single variable and value being passed ;) a cleaner look imo.

anyways, my index.htm looks like this:
<html>
<head>
<title>mydomain.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="100%,*" frameborder=no framespacing="0" border="0">
<frame src="/index.php" name="frame1" noresize>
<frame src="/index.htm">
</frameset><noframes></noframes>
<body>
</body>
</html>

the index.htm is the "default" document, but the real content starts with
index.php.

what is the best approach for using the NOFRAMES option so that if the
browser
isnt frames-friendly, that it goes back to the "old" way, i.e. just loading
up
index.php ?

would i just use a meta refresh 0 w/index.php in the NOFRAMES tag ? it's
hard
to test since all of my browsers like frames ;)

thanks all.
Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
fartsniff wrote:
hello all,
i am using FRAMES on my PHP site, basically i am using just on frame
with the entire site inside. this is mainly for cosmetics so that
http://www.mydomain.com always is displayed in the address bar instead
of every single variable and value being passed ;) a cleaner look imo.

anyways, my index.htm looks like this:
<html>
<head>
<title>mydomain.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="100%,*" frameborder=no framespacing="0" border="0">
<frame src="/index.php" name="frame1" noresize>
<frame src="/index.htm">
</frameset>
<noframes><?php include 'index.php'; ?></noframes>
<body>
</body>
</html>

the index.htm is the "default" document, but the real content starts with
index.php.

what is the best approach for using the NOFRAMES option so that if the
browser
isnt frames-friendly, that it goes back to the "old" way, i.e. just loading
up
index.php ?

would i just use a meta refresh 0 w/index.php in the NOFRAMES tag ? it's
hard
to test since all of my browsers like frames ;)


If the browser doesn't support frames, chances are it doesn't support
meta refresh either - see above

--
Justin Koivisto - sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.

Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.