[SOLVED] Newbie question on calling a url from PHP
Posted: Sun Nov 16, 2003 4:02 pm
I am new to php and am trying to use an if/else statement to direct my user to either the page he/she requested or to the log-in page if a condition (either a successful query of the db with their username/password or the existence of a valid session variable) is not met.
I'm not having a problem with the general logic of this. I am, however, having difficulty identifying a php function which allows me to implement this functionality. In general, I'm trying to do the following:
if (condition exists)
{
do_this_function("the requested page")
}
else
{
do_this_function("the log-in page"
}
I'm looking for the 'do_this_function' part.
Any help would be greatly appreciated.
Thanks,
Richard
I'm not having a problem with the general logic of this. I am, however, having difficulty identifying a php function which allows me to implement this functionality. In general, I'm trying to do the following:
if (condition exists)
{
do_this_function("the requested page")
}
else
{
do_this_function("the log-in page"
}
I'm looking for the 'do_this_function' part.
Any help would be greatly appreciated.
Thanks,
Richard