Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]Panel Logowania dla htpasswd nie działa w IExplorer
majage
post
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 10.12.2017

Ostrzeżenie: (0%)
-----


Panel Logowania dla htpasswd nie działa w IExplorer. W Chrome wszystko jest ok.
W czym problem?


<?
if (isset($_POST['done']))
{
$url = "std64.com/secure";
$site = "http://".$_POST['user'].":".$_POST['pass']."@".$url;
header("Location: $site");
}

?>
<html>
<form action="<?=$PHP_SELF?>" method="POST">
User <input type="text" name="user"><br>
Pass <input type="password" name="pass"><br>
<input type="submit" name="done">
</form>
</html>
Go to the top of the page
+Quote Post
SmokAnalog
post
Post #2





Grupa: Zarejestrowani
Postów: 1 707
Pomógł: 266
Dołączył: 3.07.2012
Skąd: Poznań

Ostrzeżenie: (0%)
-----


Daj exit; po headerze:
  1. header("Location: $site");
Go to the top of the page
+Quote Post
majage
post
Post #3





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 10.12.2017

Ostrzeżenie: (0%)
-----


nie pomogło
Go to the top of the page
+Quote Post
SmokAnalog
post
Post #4





Grupa: Zarejestrowani
Postów: 1 707
Pomógł: 266
Dołączył: 3.07.2012
Skąd: Poznań

Ostrzeżenie: (0%)
-----


A co to znaczy „nie działa”? Sprawdź czy zadziała jak podstawisz jakiś inny URL pod Location.
Go to the top of the page
+Quote Post
majage
post
Post #5





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 10.12.2017

Ostrzeżenie: (0%)
-----


Tak jak pisałem w Chrome działa podobnie jest FF i Operze a w IE wskakuje komunikat, że nie może wyświetlić strony, którą bez problemu wyświetla z pominięciem tego skryptu.

Pomoże ktoś?

Cytat(majage @ 10.12.2017, 20:51:56 ) *
Panel Logowania dla htpasswd nie działa w IExplorer. W Chrome wszystko jest ok.
W czym problem?


<?
if (isset($_POST['done']))
{
$url = "std64.com/secure";
$site = "http://".$_POST['user'].":".$_POST['pass']."@".$url;
header("Location: $site");
}

?>
<html>
<form action="<?=$PHP_SELF?>" method="POST">
User <input type="text" name="user"><br>
Pass <input type="password" name="pass"><br>
<input type="submit" name="done">
</form>
</html>



Ten post edytował majage 11.12.2017, 17:17:28
Go to the top of the page
+Quote Post
trueblue
post
Post #6





Grupa: Zarejestrowani
Postów: 6 809
Pomógł: 1828
Dołączył: 11.03.2014

Ostrzeżenie: (0%)
-----


Może pomoże: https://support.microsoft.com/en-us/help/83...ords-in-web-sit
Go to the top of the page
+Quote Post
majage
post
Post #7





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 10.12.2017

Ostrzeżenie: (0%)
-----


ok

tylko jak to w praktyce wykorzystać?
Go to the top of the page
+Quote Post
trueblue
post
Post #8





Grupa: Zarejestrowani
Postów: 6 809
Pomógł: 1828
Dołączył: 11.03.2014

Ostrzeżenie: (0%)
-----


Użyć sugestii z sekcji Workarounds.
Go to the top of the page
+Quote Post
majage
post
Post #9





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 10.12.2017

Ostrzeżenie: (0%)
-----


Nie moja liga może kiedyś.

Może jednak mogę liczyć na Twoją pomoc?

Ktoś pomoże?(IMG:style_emoticons/default/questionmark.gif) (IMG:style_emoticons/default/questionmark.gif) (IMG:style_emoticons/default/facepalmxd.gif)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.12.2025 - 21:45