Flash cs5 - potrebna pomoc

Flash cs5 - potrebna pomoc

offline
  • Pridružio: 23 Mar 2012
  • Poruke: 5

Ovako, radim neki web sajt u flashu cs5 i napravio sam kontakt formu i sve odlicno radi nigde ne izbacuje gresku ali kad mi neko pokusa da posalje mail on mi ne stize mada i dalje nema greske pri testiranju kao da je mail otisao, mozda sam napravio neku gresku u kodu pa ako neko zna nek mi objasni gde sam pogresio. Hvala.

var allVars:URLVariables = new URLVariables();
allVars.name = theName.text;
allVars.email = theEmail.text;
allVars.message = theMessage.text;
// Send into to a url
var mailAddress:URLRequest = new URLRequest("kristijan_88@yahoo.com");
mailAddress.data = allVars;
mailAddress.method = URLRequestMethod.POST;
sendToURL(mailAddress);
theFeedback.text = "Hvala Vam na poruci!";
theName.text = "";
theEmail.text = "";
theMessage.text = "";



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
offline
  • Pridružio: 19 Maj 2005
  • Poruke: 5224
  • Gde živiš: Oslo

Ne radi jer flash sam nije dovoljan da posalje email. Za to ti treba podrska u vidu neke skripte na serveru: php, asp ili slicno.
Imali smo tu temu, pogledaj, mozda pomogne:
http://www.mycity.rs/Flash/Tutorijal-FlashPHP-slanje-forme.html



offline
  • Pridružio: 23 Mar 2012
  • Poruke: 5

hvala pogledacu samo sto sam vec video na tutorialu da je radilo bez ikakvog php koda,vec ovako kao sto izgleda i moj kod samo umesto maila je upisao adresu nekog sajta/njegov id.i radilo mu je.
evo okacio sam web sajt na neki besplatni hosting da jos priblizim pitanje
dubnickimost.webege.com/

offline
  • Pridružio: 19 Maj 2005
  • Poruke: 5224
  • Gde živiš: Oslo

'Ajde posalji link do tog tutorijala, ne bilo ti tesko.

offline
  • Pridružio: 23 Mar 2012
  • Poruke: 5

Napisano: 24 Mar 2012 20:52

na cd_u mi je a zauzima mnogo memorije.ali evo sta je on napisao umesto mog maila, svoj domen i

"http://www.jillgraphicdesigner.com/gdform.php" ako mu taj gdform nije taj dodatak koji mu radi send?!

Dopuna: 30 Mar 2012 0:38

napravio sam u svakom slucaju hvala za pomoc.trebao je taj dodatni php fajl. pa ukoliko nekome zatreba ovako kod mene radi. S tim da u flashu ja sam imao tri polja kojima sam dao imena theName, theMail i theMessages sad je na vama da li cete praviti dodatna ili ne cak ili varijable.
Hvala mnogo jos jednom na skretanju paznje Tamititami.

<?php /* --------------------------- php and flash contact form. by MacromediaHelp.com --------------------------- Note: most servers require that one of the emails (sender or receiver) to be an email hosted by same server, so make sure your email (on last line of this file) is one hosted on same server. --------------------------- */ // read the variables form the string, (this is not needed with some servers). $subject = $_REQUEST["subject"]; $message = $_REQUEST["message"]; $sender = $_REQUEST["sender"]; // include sender IP in the message. $full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . $message; $message= $full_message; // remove the backslashes that normally appears when entering " or ' $message = stripslashes($message); $subject = stripslashes($subject); $sender = stripslashes($sender); // add a prefix in the subject line so that you know the email was sent by online form $subject = "Contact form ". $subject; // send the email, make sure you replace email@yourserver.com with your email address if(isset($message) and isset($subject) and isset($sender)){    mail("tvojemail@upisiovde.com", $subject, $message, "From: $sender"); } ?>

a flash

import flash.net.URLVariables; import flash.net.URLRequest; InteractiveObject(theName.getChildAt(1)).tabIndex = 1; InteractiveObject(theEmail.getChildAt(1)).tabIndex = 2; InteractiveObject(theMessage.getChildAt(1)).tabIndex = 3;

/* Mouse Click Event
Clicking on the specified symbol instance executes a function in which you can add your own custom code.

Instructions:
1. Add your custom code on a new line after the line that says "// Start your custom code" below.
The code will execute when the symbol instance is clicked.
*/
send_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_7); function fl_MouseClickHandler_7(event:MouseEvent):void {    if (theName.text == "" || theEmail.text == "" || theMessage.text == "")    {       theFeedback.text = "Molim popunite sva polja!";    }    else    {       var allVars:URLVariables = new URLVariables ();       allVars.name = theName.text;       allVars.email = theEmail.text;       allVars.message = theMessage.text;       // send into a url       var mailAddress:URLRequest = new URLRequest("http://www.vasdomen.com/ime-php-fajla.php");       mailAddress.data = allVars;       mailAddress.method = URLRequestMethod.POST;       sendToURL(mailAddress);       theFeedback.text = "Hvala Vam!";       theName.text = "";       theEmail.text = "";       theMessage.text = "";    } }

Ko je trenutno na forumu
 

Ukupno su 323 korisnika na forumu :: 2 registrovanih, 0 sakrivenih i 321 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: havoc995, suton