Forum Moderators: coopster
my file directory looks like this
root/widget/redwidget with login.php in here
however in widget I need index.php
using includes ( "./redwidget/login.php" )
but how do i go back to index from login.php
the only way i see is to hard code the directory e.g c://root/widget/index.php)
does anyone have any simpler suggestions ?
Regards
Malcolm
widget/redwidget/login.php
and then redirect them after a succesful login to
widget/index.php
If so, try using header location like this
if (login succesful)# check your variables here
{
header("Location: http://www.example.com/widgets/");
exit;
}
else # send them back to login page
{
header("Location: http://www.example.com/widgets/redwigets/login.php");
exit;
}