# Feedback Form that allow download file

**URL:** <https://forum.kirupa.com/t/feedback-form-that-allow-download-file/312823>\
**Category:** flash\
**Created:** [August 13, 2010, 1:14pm UTC](https://forum.kirupa.com/t/feedback-form-that-allow-download-file/312823 "2010-08-13T13:14:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iddodoz](https://avatars.discourse-cdn.com/v4/letter/i/e8c25b/32.png) [@iddodoz](https://forum.kirupa.com/u/iddodoz)\
**Post date:** [August 13, 2010, 1:14pm UTC](https://forum.kirupa.com/t/feedback-form-that-allow-download-file/312823/1 "2010-08-13T13:14:20Z")

</div>

Hi Everybody, i have a question about a simply mail form using php, i’d like to modify in this way:  
I wish that when you click on send message also started downloading a file, but checking that the form is filled in correctly … and possibly the download links could be read from a text file to avoid having to change each time the fla  
I hope I was clear … (sorry for my bad english)

follow the code:

stop();  
pulsInvio.onRelease = function(){  
var sendMail:LoadVars = new LoadVars();  
sendMail.nome = Nome.text;  
sendMail.cognome = Cognome.text;  
sendMail.mittente = Email.text;  
sendMail.richiesta = Richiesta.text;  
sendMail.destinatario = ‘info@xxxxxxxxx.com’;  
sendMail.onLoad = function(success){  
if(success){  
Nome.text = ‘’;  
Cognome.text = ‘’;  
Email.text = ‘’;  
Richiesta.text = ‘’;  
mcMsg.mcTxt.txtMsg.text = this.controllo;  
mcMsg.play();  
}  
}  
sendMail.sendAndLoad(‘email.php’, sendMail, ‘POST’);  
}
