PDA

View Full Version : can php bring up a particular web page


hendryk
08-14-2002, 02:30 PM
Hi,

I have an HTML/Javascript page for the user to login (the login data is in an ORACLE database). In the php I have the following:

if($column_value = $passwd1 && $column_value2 = $name)
{
echo" THE LOGIN HAS BEEN SUCCESSFUL";

}

but I then want the Home page for the site to come up if the login has been successful. Does anybody know how to get this page up?

Thanks

Katie

Spookster
08-14-2002, 02:38 PM
I'm assuming you are either storing the location of the users page or have that information:



if($column_value = $passwd1 && $column_value2 = $name){
header("location:userspage.html");
}

firepages
08-14-2002, 05:05 PM
but please change...

if($column_value = $passwd1 && $column_value2 = $name)

to

if($column_value == $passwd1 && $column_value2 == $name)

probably just a typo I know but could be expensive ;)

hendryk
08-14-2002, 05:08 PM
Thanks,

It took me a while, but I noticed this.

Spookster
08-14-2002, 06:13 PM
Wow even I missed that. Of course it's always the simplest of typos that are overlooked.