Frame issue
Moderator: General Moderators
Frame issue
In my system, i wanna use 3 frames - top, left, and right. In top frame, i wanna put search function (textbox and button). So for example, if i wanna search student named John, i just have to type 'John' in the top frame and the result will be displayed in the right frame. The problem now, what i can do is very limited. When i click search, i just can view the result also in the same top frame. Anybody got any idea about the solution pls?
Actually i'm still not understand about how to do it. until now it still can't work. Can u explain a bit more detail on that? For example, what should i put at "onClick" event for the search button:
Code: Select all
<input type="e;button"e; name="e;btnSearch"e; value="e;Search"e; onClick="e;"e;>How about adding target in form tag?
Code: Select all
<form name="e;fname"e; method="e;POST"e; target="e;name"e;>Maybe I'm too much of a novice, but why not just completely drop the ugly frames and do something else? I know you can use conditionals with isset($variable) to detect when $variable is set to something, and you can place those conditionals anywhere you want. The only thing is that it's not really SECURE =D
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
If done properly, it is.theda wrote:The only thing is that it's not really SECURE =D
For example, on your index.php
Code: Select all
$pages = array( 'page1',
'page2', );
$page = (!empty($_GETї'page']) ? $_GETї'page'] : 'page1');
if (in_array($page,$pages) && file_exists($page.'.php')) {
include($page.'.php');
}