Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-09-2004, 08:21 PM   #1
zbelava
Registered User
 
Join Date: Dec 2002
Location: Zagreb,Croatia
Posts: 10
Send a message via ICQ to zbelava
Exclamation Flash > PHP > Flash -- send mail problem

Hello,

I have the next problem.
I have made form for sending mail from Flash using next php script

<?


// Enter your contact email address here
$adminaddress = "[email protected]";

// Enter the address of your website here include http://www.
$siteaddress ="http://www.ron-ban.hr";

// Enter your company name or site name here
$sitename = "RON-BAN d.o.o.";

//Ime kontakt osobe
$admin = "Silvija Horvatinec";

/************************************************** *****

No need to change anything below unless you want to add or subtract functions or change the wording of things sent back to the flash file ...

************************************************** *****/


// Gets the date and time from your server
$date = date("m/d/Y H:i:s");

// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);

//Process the form data!
// and send the information collected in the Flash form to Your nominated email address
if ($action != ""):
mail("$adminaddress","DEMO CD - narudzba",
"Posjetitelj s web stranice $sitename ispunio je sljedeci zahtjev\n
Podaci o poduzecu :

Naziv poduzeca: $legalname
Vrsta djelatnosti: $billname
Kontakt osoba: $taxid
email: $yinb
Website: $webs
Adresa: $address1
Grad: $type1
Postanski broj: $zip
Drzava: $state
Telefon: $tele
Komentar: $vel
------------------------------
Osobni podaci :

Ime: $fname
Prezime: $lname
Zanimanje: $ss
E-mail: $email
Ulica: $addy1
Grad: $cityp1
Postanski broj: $zipp1
Drzava: $statep1
Komentar: $vel
------------------------------
Logged Info :
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");

//This sends a confirmation to your visitor
mail("$email","Hvala na posjeti web-stranici $sitename",
"Postovani $fname,\n
Hvala Vam na interesu za Pinnacle Studio v.9 demo CD.Isti cemo
poslati na Vasu adresu u roku nekoliko sljedecih dana.
Hvala Vam na posjetu stranici $sitename!\n
Pozdrav,
$sitename
$admin
$siteaddress","FROM:$adminaddress");

//This sends a confirmation to your visitor2
mail("$yinb","Hvala na posjeti web-stranici $sitename",
"Postovani $legalname,\n
Hvala Vam na interesu za Pinnacle Studio v.9 demo CD.Isti cemo
poslati na Vasu adresu u roku nekoliko sljedecih dana.
Hvala Vam na posjetu stranici $sitename!\n
Pozdrav,
$sitename
$admin
$siteaddress","FROM:$adminaddress");
//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Hvala Vam na zahtjevu. Uskoro cete primiti potvrdni email.";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";


endif;

?>

Now, Flash sends mail OK, but I have AS code in for for receiving confirmation from PHP that mail is sent.

When all is located in _root next code received confirmation OK:

loadVariablesNum(mailform, 0);
answer = confirm;


but, when all is im mc deep in site then next code line does not received
any confirmation from PHP:

loadVariables(mailform, "_root.glavni_3.home.democd");

where "democd" is the name of the mc that holds all stuff.

It means that in both ways everything is the same only this part of code is not the same.

I have all text fields named OK - IT WORKS IN WHEN IT IS IN ROOT anyway

I'm in biggggg problem with this, and don't know what to do.
Any help will be nice.
zbelava is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:33 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.