Re: which window?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Jan 5, 2008, at 3:09 PM, Casey wrote:

Try adding "target="_top"" or "target="_parent"" to the form element in HTML.

On 1/5/08, Bastien Koert <bastien_k@xxxxxxxxxxx> wrote:

this would be an html / js issue...

why have a popup login in this case? just show the logon in the main window
and then do the redirect...


bastien

Thank you, the idea of a target property in the form opening tag is new to me, but it is worth a try. However, I redid the script to process itself instead of doing a header redirect. Then once the login form reloads, there is a link that has javascript do the redirect as document.referrer.window.location = (target file); (for anyone who could use a little useful info on javascript). That is one of the things I love about php. The login script can write javascript that is not present in the pre form submission version. So someone trying by trial and error to log in cannot look at the javascript and figure anything out from it. Someone who can log in could see it in the added script, but there's no point because it is visible in the location field of the browser, then. I have other tricks to screen access. But no one is going to get the keys to Fort Knox on this site either. It is effectively the same type of security that a forum would use, and the same type of content value.
Thank you for the suggestion;
Jeff K


----------------------------------------
To: php-general@xxxxxxxxxxxxx
From: jekillen@xxxxxxxxxxx
Date: Sat, 5 Jan 2008 10:17:55 -0800
Subject:  which window?

Hello;
I have a login panel that is opened as a javascript window.
In the processing script, a successful login  uses the
header function to send the user to the restricted content
index page.
But this page is loading into the javascript window instead
of the opener window of the browser. Is it possible to supply
a target property to the header() function to display
content in a specific window? Or is that strictly an html/javascript
issue? I have looked into the header() function but it is unclear
to me what all can be done with headers.
Thanks in advance for suggestions, info;
Jeff K

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


_________________________________________________________________
Use fowl language with Chicktionary. Click here to start playing!
http://puzzles.sympatico.msn.ca/chicktionary/index.html?icid=htmlsig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
-Casey


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux