Posted by Rik on 01/29/07 22:43
McGowan <Boomer84@gmail.com> wrote:
> the basic idea here is that I want a web page that is made up of
> frames to redirect automatically to a frame depending on an if
> statement...
>
> if($1 =3D=3D $2)
> {
> load url1.php in frame "main"
> }else
> {
> load url2.php in frame "main"
> }
> The frame "main" is an <iframe> if that makes a difference.
It all depends on where $1 & $2 are coming from. If it's server-side, a =
=
simple if statement and an echo()ed src attribute is all it takes.
-- =
Rik Wasmus
[Back to original message]
|