ciao a tutti!
ho un problema su un sito..
spero sappiate aiutarmi...


allora
ho scaricato un bel form in flash da flashkit
l'ho sistemato e inserito nella mia pagina flash.
i campi sono
nome, compagnia, tel, email (con controllo)
funziona tutto tranne per il fatto che la mail mi arriva coi campi vuoti.

vi posto i codici

NEL FLASH:


stop();
// this variable will decide if the email address is in the correct format
a =0;
// validates the email field for @ symbol and a . at the end
function validate () {
if (from.length>=7) {
if (from.indexOf("@")>0) {
if ((from.indexOf("@")+2)<from.lastIndexOf(".")) {
if (from.lastIndexOf(".")<(from.length-2)) {
a = 1;
// email is fine
}
}
}
}

}
// checks for empty fields then calls email check function
function formcheck () {
validate ();
trace(a);
if (fname = "" or telno eq "" or comments eq "" or from eq "") {
stop();
error = "You have left blank fields, please fill in all fields, thank you";
} else {
emailcheck ();
}
}
// email check function calls the fucntion at the top, if its satisfied it loads the php script and sends you to frame 2
function emailcheck (){
if (a != 1){
stop();
error = "Email address not valid";
} else {
loadVariablesNum("mailWoods.php3", 0, "POST");
gotoAndStop(2);
}
}



__________________________________________________ ____

sul bottone SEND il codice è questo
on (release) {
formcheck ();
}
__________________________________________________ ____



IN mailWoods.php IL CODICE è QUESTO:

<?php

#change the email address in the variable $adminaddress below to the email address you want
#the form to send to.

$adminaddress = "gel@lamiamail.buuu";
$sitename = "ilmiosito";

#make sure your input field variable names in flash are the same as the field names below,
#leave out the dollar sign in flash.

mail("$adminaddress","Info Request",
"A customer at $sitename has made the following enquiry\n
First Name: $name
Company Name: $company
Telephone: $telno
Email: $from\n
The visitor commented:
-----------------------------------------------------------------------------------------
$comments

Logged Info :
-----------------------------------------------------------------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");

?>



- il sistemista dice che potrebbe essere un problema del php3
non so...ho provato anche a rinominare i file...ma ovviamente la cosa non cambia...
Avete qualche idea illuminante?