Kontakt forma - kako da radi?

Kontakt forma - kako da radi?

offline
  • Pridružio: 14 Okt 2007
  • Poruke: 316

Imam contact php fajl, i contact asp fajl, sta treba i gde da zamenim, da to proradi..?

Prvi:
<%    for i=1 to 7        message=Request("message")    next        message=message + Request("message")          smtpServer = "your SMTP server here"       smtpPort = 25              name = Request("Your_Name:")       Set myMail = CreateObject("CDO.Message")       myMail.Subject = "from " & name       myMail.From = Request("Your_Email:")       myMail.To = Request("recipient")       myMail.HTMLBody = "<html><head><title>Contact letter</title></head><body><br>" & message & "</body></html>"       myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2       myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpServer       myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = smtpPort       myMail.Configuration.Fields.Update       myMail.Send     %>


Drugi
<?php Error_Reporting(E_ALL & ~E_NOTICE);  while ($request = current($_REQUEST)) {     if (key($_REQUEST)!='recipient') {       $pre_array=split ("&777&",  $request);              $post_vars[key($_REQUEST)][0]=preg_replace ("/<[^>]*>/", "", $pre_array[0]);       $post_vars[key($_REQUEST)][1]=preg_replace ("/<[^>]*>/", "", $pre_array[1]);    }    next($_REQUEST); } reset($post_vars); $subject="From ".$post_vars['your_name'][0] ; $headers= "From: ".$post_vars['your_email'][0] ."\n";  $headers.='Content-type: text/html; charset=utf-8';  $message='';   while ($mess = current($post_vars)) {      if ((key($post_vars)!="i") && (key($post_vars)!="your_email") && (key($post_vars)!="your_name")) {        $message.="<strong>".$mess[1]."</strong>   ".$mess[0]."<br>";    }    next($post_vars);  } mail($_REQUEST['recipient'], $subject,  " <html> <head>  <title>Contact letter</title> </head> <body> <br>   ".$message." </body> </html>" , $headers); echo ("Poruka poslata!"); ?> <script>    resizeTo(300, 300); </script>

hvaaala puno! ajde tim tim :-)

Dopuna: 27 Nov 2008 15:52

niko nema odgovor? Sad



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
offline
  • PHP developer
  • Pridružio: 22 Mar 2006
  • Poruke: 3695
  • Gde živiš: 127.0.0.1

Izdvojeno: http://www.mycity.rs/PHP/PHP-Tutorijal-Kontakt-forma.html



Ko je trenutno na forumu
 

Ukupno su 1279 korisnika na forumu :: 105 registrovanih, 11 sakrivenih i 1163 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: 357magnum, Alibaba1981, Arsenije, babaroga, Ben Roj, Beria, Bobrock1, bojcistv, BORUTUS, Brada i Gibanica, brundo65, BSD, Bubili, Buda Baba, burevesnik, cavatina, cemix, comi_pfc, Cranium, darcaud, darkangel, davison20, ddjxxi, Dejan84, dejanbenkovic, Denaya, Drug Platov, DucicM, Duh sa sekirom, Ehinacea, Faki-Valjevo, flash12, geo.dule, Georgius, Gibli, haris1913, helen1, ILGromovnik, ivicasimo, Jester, Joja, Jovan Nenad, kaptain, Klecaviks, komkom, konstruktor, Krusarac, liman, Lubica, madza, MB120mm, menges, mercedesamg, Milan A. Nikolic, mile23, milimoj, miodrag, MiroslavD, Miskohd, Mixelotti, MrNo, Nemanja.M, Neutral-M, Niko Bitan, operniki, panda1, Parker, pein, Pohovani_00, Profica, raptorsi, raskoljnikov, rkekoke, RobinHood12, Rocker, rodoljub, S-lash, sakota79, savaskytec, scimitar19, shaja1, Shinobi, Sirius, Smiljke, Srki94, Steeeefan, Stuka76, t84dar, Toni, torlak 1, upitnik, Van, Viceroy, Vlada1389, Vlada78, Vlajman1957, VojvodaMisic, vukovi, Webb, wizzardone, wolf431, Wrangler, zogi036, Zvrk, zxstole