I use PHP to "include" dinamically some pages. I don't want to use frames.
Now, my default.php (that acts like a frame) loads a leftmenu.php and a
rightform.php.
What I want to do in my rightform.php, is to detect when it's name is in the
URL (like www.mysite.com/rightform.php) If it's the case, I want to redirect
to the index.php page of the site. Since the URL is on the client side, I
think this should be done in javascript. (also the server receives the URL,
so it may be possible to do server side tests), and once I detect the URL
names contains the filename that should not be in the URL, redirect to
index.php.
How to do so ?
Bob
Now, my default.php (that acts like a frame) loads a leftmenu.php and a
rightform.php.
What I want to do in my rightform.php, is to detect when it's name is in the
URL (like www.mysite.com/rightform.php) If it's the case, I want to redirect
to the index.php page of the site. Since the URL is on the client side, I
think this should be done in javascript. (also the server receives the URL,
so it may be possible to do server side tests), and once I detect the URL
names contains the filename that should not be in the URL, redirect to
index.php.
How to do so ?
Bob
Comment