sto cercando di fare un filmato flash che mi invia delle variabili ad un file php. ho creato tre campi di testo input sullostage con questi nomi:
NOME
COGNOME
TELEFONO
sullo stage ho messo un bottone e gli ho associato il seguente script(i campi di testo ed il pulsante sono in un unico fotogramma):
on (release) {
var sendMail = new LoadVars();
sendMail.nome =nome.text;
sendMail.cognome =cognome.text;
sendMail.telefono = telefono.text;
sendMail.sendAndLoad("http://localhost/form.php", sendMail, 'POST');
}
la pagina form.php e costruita così:
<?php
$nome=$_POST['nome'];
$cogn=$_POST['cognome'];
$tel=$_POST['telefono'];
/*print the variables to the output in order to let flash read them */
//$vars = "" ;
$vars .= "nome=" . $nome . "&";
$vars .= "cognome=" . $cogn . "&";
$vars .= "telefono=" . $tel;
echo $vars;
?>
come faccio ad aprire la pagina php in modo da vedere se le variabili sono passate, attualmente non ci riesco! grazie per l'aiuto.![]()

Rispondi quotando
