Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php/css] problem z podpięciem stylu
-Gość_Mariusz_*-
post
Post #1





Goście







witam,
mam problem z podpięciem do tego pliku stylu css... (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) nie mam pojęcia, w któym momencie się do niego odnieść, bo wyskakuje mi błąd :/

  1. <?php
  2. $user = "admin"; // Twój login
  3. $password = "pass"; // Twoje hasło
  4. if($login && $pass){
  5. if($login==$user && $pass==$password){
  6. session_register("admin");
  7. } else {
  8. echo "Błędne dane!";
  9. }
  10. }
  11.  
  12. // Settings //
  13. $phpself = $_SERVER["PHP_SELF"];
  14.  
  15. // Forms //
  16. $loginForm = "<form action=".$phpself."?mode=admin method=post>Login: <input type=text name=login><br>Hasło: <input type=password name=pass><br><input type=submit value=Zaloguj></form>";
  17.  
  18. // Script //
  19. $link = "adres";
  20. if(session_is_registered("admin")){
  21. switch ($_GET["mode"]){
  22. default:
  23. echo "<a href=".$link.">Link</a><br>";
  24. break;
  25. }
  26. } else {
  27. echo $loginForm;
  28. }
  29. ?>
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
-Gość_Mariusz_*-
post
Post #2





Goście







aktualnie tutaj nie ma błędu bo usunąłem ten fragment, w którym odnosiłem się do stylu... a jak na początku użyję
[html]<html>
<head>
<link href="gfx/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php
...
?>
</body>
</html>

to się chrzani i wyskakuje błąd

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at E:\Program Files 2\VertrigoServ\_htdocs\podstrona\podstrona.php:6) in E:\Program Files 2\VertrigoServ\_htdocs\podstrona\podstrona.php on line 8

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at E:\Program Files 2\VertrigoServ\_htdocs\podstrona\podstrona.php:6) in E:\Program Files 2\VertrigoServ\_htdocs\podstrona\podstrona.php on line 8" title="Zobacz w manualu php" target="_manual
Go to the top of the page
+Quote Post

Posty w temacie
- Gość_Mariusz_*   [php/css] problem z podpięciem stylu   28.06.2006, 21:45:47
- - gladiror   gdzie wyskakuje blad, ktora linia??   28.06.2006, 22:17:50
- - Gość_Mariusz_*   aktualnie tutaj nie ma błędu bo usunąłem ten fragm...   28.06.2006, 22:34:09
- - kresh   Nagłówki wysyłamy zawsze na początk...   28.06.2006, 22:59:42


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

 



RSS Aktualny czas: 15.10.2025 - 09:43