[ mramorcanin @ 14.09.2009. 15:40 ] @
Radim jedan sajt u flashu i dobio sam php skriptu za slanje mejlova i komentara sa sajta, pa ne znam da je podesim. Ako neko moze da pomogne , postavicu je ovde
Code:

on (rollOver) {
    this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
    this.gotoAndPlay("s2");
}



on (release) {
    for (i=1; i<_parent.fields_descriptions.length; i++) {
        if (_parent[_parent.fields_descriptions[i][1]]!=_parent.fields_descriptions[i][2]) {
            this[_parent.fields_descriptions[i][1]]=_parent[_parent.fields_descriptions[i][1]]+"&777&"+_parent.fields_descriptions[i][2];
        }
        _parent.reset_txt(_parent["t"+i], _parent.fields_descriptions[i][1], _parent.fields_descriptions[i][2]);
    }

    this.recipient=_parent.rec;
    i=undefined;
    getURL("contact."+_parent.serv, "_blank", "POST");
    
}
[ Tudfa @ 14.09.2009. 17:27 ] @
Proveri na koji nacin ta skripta salje mail (pretpostavljam sa mail funkcijom)
Vidi za svaki slucaj da li ti hosting podrzava taj nacin slanja maila(probaj bez flash-a cisto da znas jel radi).

Iz ovog AS sve sto se tice php-a je to da funkcija getURL ima za parametar taj contact.php koji ce biti pozvan.
Ostavi taj php fajl ili link do cele skripte, jer iskeno ovaj actionscript sto si prilozio nema neke veze sa php-om.

Ako sumnjas na AS, mozda je bolje da pitas na Flash forumu.
[ mramorcanin @ 14.09.2009. 21:25 ] @
dobio sam od jednog poznanika iz venecuele tako da nemam link

evo coda

Code:

<%
    for i=1 to 7
         message=message + "<strong>"&Request("field_"&i&"_descr")&"</strong>&nbsp;&nbsp;&nbsp;"&Request("field_"&i)&"<br>"
    next
         message=message + Request("message")    
        smtpServer = "mail.trujagroup.com"
        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
    
%>



ne znam gde treba tu da stoji moja mejl adresa na koju treba da stizu mejlovi, stavio sam smtp
[ mramorcanin @ 14.09.2009. 21:31 ] @
Izbacuje mi gresku 401 - Autorization Required

Internal server error

We’re sorry for the inconvenience, but there has been an internal server error. Please click on the back button to return to the former page.
[ mramorcanin @ 14.09.2009. 21:32 ] @
a sajt se nalazi na radni.trujagroup.com u meniju - kontakt
[ dakipro @ 14.09.2009. 21:33 ] @
A u kom ti je programskom jeziku kod koji si poslednji postovao?
[ markom @ 14.09.2009. 21:35 ] @
Mom neiskusnom oku ono liči na neki Basic, ali nisam siguran... PHP nije, to je očigledno :-).
[ Tudfa @ 14.09.2009. 21:41 ] @
Pre da je ASP(ne koristim ga pa ti ne mogu pomoci), mozda je bolje da pitas na drugom forumu, ili da se samo tema tamo prebaci.
[ mramorcanin @ 14.09.2009. 21:48 ] @
ekstenzija je .asp, tek sam ja neiskusan , ali sam ovo nasao o tome

ASP - Active Server Pages


(asp)

A Microsoft specification for dynamic web pages created using Visual Basic or Jscript (engines for Perl and REXX are also available). Pages written to this specification carry the extension .ASP and are similar to CGI scripts which generate code on the fly. ASP pages can combine HTML, scripts, and ActiveX server components.
[ mramorcanin @ 14.09.2009. 21:55 ] @
Hvala Nemanja, valjda ce neko da se javi, ima 3 koda to me je zbunilo jedan od njih je php ali je u njemu definisana samo error poruka a u asp kod za mejl. Valjda ce se neko javiti.