frameset question
Posted: Sat Jun 08, 2002 1:15 pm
ok, i am trying to make a login page (new in this) which checks for the user name and pass in a table in oracle, and then if this is ok, takes you to a frameset....
<?php
$T1=$HTTP_POST_VARS['T1'];
$T2=$HTTP_POST_VARS['T2'];
putenv("ORACLE_SID=ACTDB");
putenv("ORACLE_HOME=C:/oracle/ora81");
$conn = ora_logon("scott@actdb", "tiger") or die(ora_error());
$curs1 = ora_open($conn);
$curs2 = ora_open($conn);
$query1 = "select members.alias, members.password
from members where members.alias=$T1 and members.password=$T2";
ora_parse($curs1, $query1);
ora_exec($curs1);
?>
<html>
<head>
</head>
<frameset cols="250,*" frameborder="NO" border="0" framespacing="0" rows="*">
<frame name="left" scrolling="NO" noresize src="left.php">
<frame name="main" src="featured.htm">
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</noframes>
</html>
question: how does the left php know the variables that this code knows (T1 and T2) how do i introduce them in the left.php?
thanks
<?php
$T1=$HTTP_POST_VARS['T1'];
$T2=$HTTP_POST_VARS['T2'];
putenv("ORACLE_SID=ACTDB");
putenv("ORACLE_HOME=C:/oracle/ora81");
$conn = ora_logon("scott@actdb", "tiger") or die(ora_error());
$curs1 = ora_open($conn);
$curs2 = ora_open($conn);
$query1 = "select members.alias, members.password
from members where members.alias=$T1 and members.password=$T2";
ora_parse($curs1, $query1);
ora_exec($curs1);
?>
<html>
<head>
</head>
<frameset cols="250,*" frameborder="NO" border="0" framespacing="0" rows="*">
<frame name="left" scrolling="NO" noresize src="left.php">
<frame name="main" src="featured.htm">
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</noframes>
</html>
question: how does the left php know the variables that this code knows (T1 and T2) how do i introduce them in the left.php?
thanks