![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 7 Pomógł: 0 Dołączył: 15.12.2008 Ostrzeżenie: (0%) ![]() ![]() |
witam mam kilka problemów i zwracam się do was z prośbą o pomoc
1 email dohodzi ze strony www na skrzynke ale nie wysyła mi adresu e-mail osoby wysyłającej na pewno błędy w pliki mail.php 2 prośba o sprawdzenie style.css i kontakt.html oraz wskazanie błędów jakie występują 3 jestem początkujący i często potrzebuje pomocy mam nadzieje że na tym forum taką otrzymam. ![]() pliki mail kontakt style |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 1 675 Pomógł: 286 Dołączył: 15.06.2009 Skąd: Wieliczka Ostrzeżenie: (0%) ![]() ![]() |
wrzuć tu bbcode, komu chce się ściągać to z speedyshare?
|
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 7 Pomógł: 0 Dołączył: 15.12.2008 Ostrzeżenie: (0%) ![]() ![]() |
wrzuć tu bbcode, komu chce się ściągać to z speedyshare? Kod mail.php <?php error_reporting(0); ob_start(); $tytul=$_POST['tytul']; $tytul=$_POST['tytu2']; $tresc=$_POST['tresc']; if($tytul=='' | empty($tytul)) { $msg="Musisz podać email."; } if($tytul=='' | empty($tytu2)) { $msg="Musisz podać tytuł wiadomości."; } else if($tresc=='' | empty($tresc)) { $msg="Musisz podać treść wiadomości."; } else if(isset($_COOKIE["ciastko"])==false) { $a1=array('<','>','\'','\\\'',''','\"','&'); $a2=array('<','>',''',''',''','"','&'); $tresc=$_POST['tresc']; $tresc=str_replace($a1,$a2,$tresc); $tresc=nl2br($tresc); $tytul=$_POST['tytu1']; $tytul=str_replace($a1,$a2,$tytu1); $tytul=nl2br($tytu1); $tytul=$_POST['tytu2']; $tytul=str_replace($a1,$a2,$tytu2); $tytul=nl2br($tytu2); $wiadomosc = "<html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> <meta http-equiv=\"Content-Language\" content=\"pl\"> </head> <body> $tresc </body> </html>"; $newLine="\r\n"; $naglowki .= "From: ha4rr9y.pl" . $newLine; $naglowki .= "Reply-To: <>" . $newLine; $naglowki .= "TO: ha4rr9y@gmail.com" . $newLine; $naglowki .= "Content-type: text/html; charset=utf-8" . $newLine; $naglowki .= "Content-Transfer-Encoding: 8bit" . $newLine; $naglowki .= "MIME-Version: 1.0" . $newLine; setcookie("ciastko", "0", time()+300); mail("ha4rr9y@gmail.pl", "ha4rr9y.pl", $wiadomosc, $naglowki); $msg="Wiadomość wysłana."; } else { $msg="Wiadomość można wysyłać co 5 minut."; } ob_end_flush(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>ha4rr9y.pl - to co mi potrzebne do szczęścia ![]() <meta http-equiv="Content-Language" content="English" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" type="text/css" href="style.css" media="screen" /> </head> <body> <div id="wrap"> <div id="header"> </div> <div id="menu"> <ul> <li><a href="index.html">Start</a></li> <li><a href="oferta.html">Oferta</a></li> <li><a href="dl.html">Downloads</a></li> <li><a href="kontakt.html">Kontakt</a></li> </ul> </div> <div id="content"> <div class="left"> <h2><a>Strona w budowie</a></h2> Hym co to bedzie tego jeszcze nie wiem, lecz przeż głowe przewija mi sie wiele pomysłów ![]() Na początku zajme sie szatą graficzną potem treścią i usprawnieniami. <h2><?php echo("$msg");?></h2> </div> <div class="right"> <h2>Pierdoły</h2> <ul> <li>World Politics</li> </ul> </div> <div style="clear: both;"> </div> </div> <div id="bottom"> </div> <div id="footer"> Designed by <a href="http://ha4rr9y.pl">ha4rr9y</a> </div> </div> </body> </html> Kod kontakt.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>ha4rr9y.pl - to co mi potrzebne do szczęścia ![]() <meta http-equiv="Content-Language" content="English" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" type="text/css" href="style.css" media="screen" /> </head> <body> <div id="wrap"> <div id="header"> </div> <div id="menu"> <ul> <li><a href="index.html">Start</a></li> <li><a href="oferta.html">Oferta</a></li> <li><a href="dl.html">Downloads</a></li> <li><a href="kontakt.html">Kontakt</a></li> </ul> </div> <div id="content"> <div class="left"> <h2><a>Strona w budowie</a></h2> Hym co to bedzie tego jeszcze nie wiem, lecz przeż głowe przewija mi sie wiele pomysłów ![]() Na początku zajme sie szatą graficzną potem treścią i usprawnieniami. <div class="kontakt"> <form method="post" action="mail.php"> Formularz kontaktowy:<br><br> Twuj e-mail:<br> <input type="text" name="tytul" class="input_kontakt"><br><br> Tytuł:<br> <input type="text" name="tytu2" class="input_kontakt"><br><br> Treść<br> <textarea name="tresc" class="text_kontakt"></textarea><br><br> <div style="text-align:center;"><input type="submit" class="submit_kontakt" value="Wyślij"></div> </form> </div> </div> <div class="right"> <h2>Pierdoły</h2> <ul> <li>World Politics</li> </ul> </div> <div style="clear: both;"> </div> </div> <div id="bottom"> </div> <div id="footer"> Designed by <a href="http://ha4rr9y.pl">ha4rr9y</a> </div> </div> </body> </html> i jeszcze style.css Kod * {
margin: 0; padding: 0; } body { background: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 17px; color: #333; } a { text-decoration: none; color: #362e19; } a:hover { text-decoration: underline; color: #4a3c19; } #wrap { margin: 20px auto; width: 1000px; } #header { background: #666666 url(images/header.jpg) no-repeat; height: 200px; } #header h1 { font-size: 38px; letter-spacing: -1px; padding: 70px 0 0 40px; color: #fff; } #header h1 a { color: #fff; text-decoration: none; font-weight: 100; letter-spacing: -2px; } #header h1 a:hover { color: #000; } #header h2 { font-size: 19px; color: #EFECE0; padding: 20px 0 0 40px; letter-spacing: -1px; font-weight: 100; } #menu { height: 40px; line-height: 40px; background: #666666 url(images/menu.jpg) no-repeat; } #menu ul { list-style-type: none; padding-left: 40px; } #menu ul li { display: block; float: left; } #menu ul li a { padding: 0 20px 0 0; text-decoration: none; font-weight: 100; font-size: 18px; color: #aaa; } #menu ul li a:hover { color: #fff; text-decoration: none; } #content { background: #666666 url(images/content.jpg) repeat-y; padding: 10px; } .left { float: left; width: 730px; text-align: justify; padding: 10px; font-size: 14px; background: #fff; border-right: 1px solid #000; border-top: 1px solid #000; border-bottom: 1px solid #000; } .left h2 { font-size: 20px; font-weight: 100; padding: 15px 0 7px 0; } .left h2 a { text-decoration: none; } .left h2 a:hover { text-decoration: underline; } .right { float: right; width: 180px; background: #fff; padding: 10px; border-left: 1px solid #000; border-top: 1px solid #000; border-bottom: 1px solid #000; } .right h2 { height: 24px; line-height: 24px; color: #000; font-size: 17px; padding-left: 10px; } .right ul { padding: 10px 0 15px 30px; list-style-type: square; } .right ul li a { font-weight: 100; font-size: 12px; } .right ul li a:hover { } #bottom { background: #d4ccae url(images/bottom.jpg) no-repeat; padding: 10px 0; } #footer { text-align: center; font-size: 11px; } .kontakt { margin-top:30px; margin-left:15px; } .input_kontakt { border:solid 1px #787370; width:460px; padding-left:3px; } .text_kontakt { border:solid 1px #787370; width:457px; height:200px; padding:3px; } .submit_kontakt { border:solid 1px #787370; } .calosc { margin:0px auto; width:700px; } |
|
|
![]()
Post
#4
|
|
Grupa: Zarejestrowani Postów: 1 675 Pomógł: 286 Dołączył: 15.06.2009 Skąd: Wieliczka Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]()
Post
#5
|
|
![]() Grupa: Zarejestrowani Postów: 1 575 Pomógł: 299 Dołączył: 26.03.2009 Ostrzeżenie: (20%) ![]() ![]() |
Po pierwsze: Użyj poprawnych BBCode.
Czemu nadpisujesz zmienną tytul ?
Co ma znaczyć jedna | ? Po co dwa razy sprawdzasz to samo ? j/w Już to sprawdzałeś... Po co drugi raz przypisujesz to samo ?
j/w
Nadpisałeś tytu1 ![]()
Ten post edytował Wicepsik 29.08.2009, 14:25:58 -------------------- |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 15:36 |