Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199908

[PHP3] redirect in frame From: Lawrence Blades (lrblades <email protected>)
Date: 08/18/99

I am logging guests vs. members onto a site built with a frame.
I am using HTTP to redirect them to the appropriate page, which works,
except the redirect opens up a NEW WINDOW, and I want the page to appear
in the SAME FRAME of the login page. I want it to behave the same as if
adding "_self" to an anchor tag.

My script goes something like this:
-------------------------------------------
while ($counter < $total_rows):
     $authentic = mysql_result($entry, $counter, "pin");
     $counter = $counter + 1;
     if ($authentic==$copin)
        {
        $URL="memberframe.html";
        header ("Location: $URL");
        }
     else
        {
        $URL="guestframe.html";
        header ("Location: $URL");
         }
endwhile;
--------------------------------------------------
ANYWAY I can get it to load in the same window/frame?

--
 Lawrence Blades
 Digital Technologies
 P.O. Box 673
 Clarksdale, MS 38614

Church Office: 601.624.6586 COL Office: 601.627.5554 FAX: 601.627.6797 Home: 601-627-9539 Cell: 601.621.3092 http://www.clarksdale.com lrblades <email protected> (If you can't find me, I can't be found.)

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>