load page in another frame

------=_NextPart_000_0039_01C92C74.5155DD60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi

I have 3 frames on my index page using frameset. I want to display =
another content in the other frames when a user has logged in =
successfully.

My code is like that:

## if user exists and have corresponding password mysql_num_rows >0

if(mysql_num_rows($res) !=3D 0) {

xxxxx code to display page in target=3Dmain ;

} else {

echo "<br>";
include("left_content.html");
include(INC_DIR."my_style.php");
unset($_SESSION['userid']);
unset($_SESSION['passwd']);

echo "<br><b>Login Failed</b> Try Again!";
include(INC_DIR."user_login.php");

}


Please help.

Thanks.

Velen
------=_NextPart_000_0039_01C92C74.5155DD60--
Velen [ So, 12 Oktober 2008 12:10 ] [ ID #1972940 ]

Re: load page in another frame

------=_Part_150028_26929538.1223819493964
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Sun, Oct 12, 2008 at 6:10 AM, Velen <velen [at] biz-mu.com> wrote:

> Hi
>
> I have 3 frames on my index page using frameset. I want to display another
> content in the other frames when a user has logged in successfully.
>
> My code is like that:
>
> ## if user exists and have corresponding password mysql_num_rows >0
>
> if(mysql_num_rows($res) != 0) {
>
> xxxxx code to display page in target=main ;
>
> } else {
>
> echo "<br>";
> include("left_content.html");
> include(INC_DIR."my_style.php");
> unset($_SESSION['userid']);
> unset($_SESSION['passwd']);
>
> echo "<br><b>Login Failed</b> Try Again!";
> include(INC_DIR."user_login.php");
>
> }
>
>
> Please help.
>
> Thanks.
>
> Velen


Use the TARGET attribute and make you link a submission to the other frame
in the set



--

Bastien

Cat, the other other white meat

------=_Part_150028_26929538.1223819493964--
Bastien Koert [ So, 12 Oktober 2008 15:51 ] [ ID #1972941 ]
PHP » gmane.comp.php.database » load page in another frame

Vorheriges Thema: Ýlgi: mysql_numrows
Nächstes Thema: MySQL stored procedures OUT or INOUT parameters