ok...ora mi appoggio ad un php esterno..ma non funziona.
Nel primo frame del filato inserisco questa action:
----------------------------------------
fscommand ("allowscale", "false");
mailform = "mailform.php";
action = "";
stop ();
----------------------------------------
al pulsante "invia" associo:
-----------------------------------------
on (release) {
if ((vemail.indexOf("@") != -1) && (vemail.indexOf(".") != - 1) && (length(vemail)>5)) {
action = "Send";
loadVariablesNum ("mailform.php", 0, "POST");
nextFrame ();
} else {
vemail = "Please enter email";
action = "";
stop ();
}
}
------------------------------------------
come si vede dallo script del pulsante, quando viene premuto(anzi rilasciato),manda il filmato al 2°frame, dove c'è un campo di testo dinamico cn variabile "answer" e dove c'è un'action con il seguente codice:
------------------------------------------
loadVariablesNum (mailform, 0);
answer = "please wait for confirmation ...";
stop ();
-------------------------------------------
Teoricamente se la mail è valida(x ora c'è solo il controllo sulla mail), viene caricato il file php e l'utente visualizza la scritta "please wait for confirmation ..."
qui nasce il problema...a questo punto si blocca tutto..PERCHEE????
Odio IL PHP!!!!!!!!!
Di seguito lo script del file "mailform.php"
Qualcuno può chiarirmi le idee?
<?
/************************************************** ****
**
** This script is easy to configure. Just change the variables below to
** suit your environment and PHP does the rest!
**
**
**
************************************************** *****/
// Enter your email address here
$adminaddress = "info@prestudiovibes.com";
// Enter the address of your website here MUST include http://www.
$siteaddress ="http://www.prestudiovibes.com";
// Enter your company name or site name here
$sitename = "PreStudioVibes";
// 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","Info Request",
"FAO: Admin @ $sitename \n
First Name: $fname
Last Name: $lname
Email: $vemail
Company: $cname
Telephone: $telno\n
The visitor commented:
------------------------------
$comments
------------------------------
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("$vemail","Thank You for visiting $sitename", "Hi $fname,\n
Thank you for your interest in $sitename!\n
Cheers,
$sitename
$siteaddress","FROM:$adminaddress");
//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Done!";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";
ENDIF;
?>
:master:![]()
![]()