Cibiņš Posted December 14, 2011 Report Share Posted December 14, 2011 (edited) Kapēc nosūtot e-pastu ja cilvēks ir ielicis piem attēlu, pie submit neaizvietojas vārds? $msgname=$_POST['messagename']; $msgtxt=$_POST['messagetext']; $oldimage = 'src="resources/'; $newimage='src="http://www.lapa.lv/resources/'; $newtext = str_replace($oldimage, $newimage, $msgtxt); $message = "<span class='controlGreen'>Ziņa nosūtīta sekmīgi</span>"; $frommail="noreply@lapa.lv"; $msgheader="Jauna ziņa no Lapa: ".$msgname; $mailheaders = "MIME-Version: 1.0\r\n"; $mailheaders .= "Content-type: text/html; charset=UTF-8\r\n"; $mailheaders .= "From: ".$frommail." <".$frommail.">\r\n"; $mailheaders .= "Reply-To: ".$frommail." <".$frommail.">\r\n"; $mailmsg .= " <html> <header> </header> <body> ".$newtext." </body> </html> "; Edited December 14, 2011 by Cibiņš Link to comment Share on other sites More sharing options...
briedis Posted December 14, 2011 Report Share Posted December 14, 2011 echo $msgtxt, paskaties, vai vispār tur ir tas ko tu domā, ka tur ir :) Link to comment Share on other sites More sharing options...
Cibiņš Posted December 14, 2011 Author Report Share Posted December 14, 2011 (edited) $mailheaders .= "Content-type: text/html; charset=UTF-8\r\n";<pre class="prettyprint"> text/html aizvietojot ar text/plain attēla no resources/ uz http://www.lapa.lv/resources/ direktoriju viņš nav samainījis! Moš ir vēl kādi varianti kā aizvietot noteiktus vārdus? Edited December 14, 2011 by Cibiņš Link to comment Share on other sites More sharing options...
briedis Posted December 14, 2011 Report Share Posted December 14, 2011 Parādi, ko tev izvadara $msgtxt Link to comment Share on other sites More sharing options...
Cibiņš Posted December 14, 2011 Author Report Share Posted December 14, 2011 (edited) aa sapratu kas pa hu**u..stripslashiem jaaizlaizh cauri...tad viss bombaas! Edited December 14, 2011 by Cibiņš Link to comment Share on other sites More sharing options...
Recommended Posts