• User

    Inviare un form per email recuperando alcune variabili da un file htm

    Salve, vorrei fare dei miglioramenti per il mio quiz a risposte multiple. Ovvero:

    1. il file "quiz_storia.htm" ha le seguenti variabili: nomeUtente (dove l'utente scrive il suo nome) e denaro (la vincita).
    2. al termine del quiz vorrei che la pagina inviasse tramite un form (di quelli che si trovano in rete gratis - al punto 4 il codice) le due citate informazioni insieme al nome del file (ovvero "quiz_storia.htm - questo perchè ho diversi tipi di quiz), alla data ed al tempo che l'utente ha impiegato a terminare il quiz.
    3. Inoltre vorrei che queste informazioni me le copiasse su un file che si trova sotto la stessa directory e che si chiama "quiz_storia_classifica.htm".
    4. Il codice del form è il seguente:
    
    <link rel="shortcut icon" href=".emailmeform.com/builder/favicon.ico" />
    <link rel="stylesheet" type="text/css" href=".emailmeform.com/builder/styles/dynamic.php?t=post" />
    <script type="text/javascript" src=".emailmeform.com/builder/js/dynamic.php?t=post&t2=0"></script>
    <div style="color:red;font-weight:bold;"></div>
    <form id="emf-form" enctype="multipart/form-data" method="post" action=".emailmeform.com/builder/form/o2RaufgH890BeLla1nQcf">
    <table style="text-align:left;" cellpadding="2" cellspacing="0" border="0" bgcolor="#FFFFFF">
    <tr>
    <td style="" colspan="2"><font face="Verdana" size="2" color="#000000"><b style="font-size:20px;">Punteggio automatico</b><br /><label style="font-size:15px;">Invia il tuo punteggio al webmaster.<br /></label><br /></font>
    </td>
    </tr>
    <tr valign="top">
    <td style="" align="left"><font face="Verdana" size="2" color="#000000"><b>Data</b></font><span style="color:red;"><small>*</small></span>
    </td>
    <td style=""><input id="element_0" name="element_0" value="" size="30" class="validate[required]" type="text" /><div style="padding-bottom:8px;color:#000000;"><small><font face="Verdana"></font></small></div>
    </td>
    </tr>
    <tr valign="top">
    <td style="" align="left"><font face="Verdana" size="2" color="#000000"><b>Nome</b></font><span style="color:red;"><small>*</small></span>
    </td>
    <td style=""><input id="element_1" name="element_1" value="" size="30" class="validate[required]" type="text" /><div style="padding-bottom:8px;color:#000000;"><small><font face="Verdana"></font></small></div>
    </td>
    </tr>
    <tr valign="top">
    <td style="" align="left"><font face="Verdana" size="2" color="#000000"><b>Tempo impiegato</b></font><span style="color:red;"><small>*</small></span>
    </td>
    <td style=""><input id="element_2" name="element_2" value="" size="30" class="validate[required]" type="text" /><div style="padding-bottom:8px;color:#000000;"><small><font face="Verdana"></font></small></div>
    </td>
    </tr>
    <tr valign="top">
    <td style="" align="left"><font face="Verdana" size="2" color="#000000"><b>Nome file</b></font><span style="color:red;"><small>*</small></span>
    </td>
    <td style=""><input id="element_3" name="element_3" value="" size="30" class="validate[required]" type="text" /><div style="padding-bottom:8px;color:#000000;"><small><font face="Verdana"></font></small></div>
    </td>
    </tr>
    <tr valign="top">
    <td style="" align="left"><font face="Verdana" size="2" color="#000000"><b>Punteggio</b></font><span style="color:red;"><small>*</small></span>
    </td>
    <td style=""><input id="element_4" name="element_4" value="" size="30" class="validate[required]" type="text" /><div style="padding-bottom:8px;color:#000000;"><small><font face="Verdana"></font></small></div>
    </td>
    </tr>
    <tr>
    <td colspan="2" align="left"><input name="element_counts" value="5" type="hidden" /><input  value="Invia" type="submit" />
    </td>
    </tr>
    </table>
    </form>
    <script type="text/javascript">
    $('body').append('<div><font face="Verdana" size="2" color="#000000">Powered by</font><span style="position: relative; padding-left: 3px; bottom: -5px;"><img src=".emailmeform.com/builder/images/footer-logo.png" /></span><font face="Verdana" size="2" color="#000000">EMF </font><a style="text-decoration:none;" href=".emailmeform.com" target="_blank"><font face="Verdana" size="2" color="#000000">PHP Form</font></a></div>')
    </script>
    <script type="text/javascript">
    $(function(){$("#emf-form").validationEngine({validationEventTriggers:"blur",scroll:false});$('.datepicker').datepicker({showOn: 'button',buttonImage: base_url+'images/calendar.png',buttonImageOnly: true,onSelect: function(dateText, inst) {var selectedDate = new Date(dateText);$('#'+inst.id+'year').val(selectedDate.getFullYear()).trigger('blur');$('#'+inst.id+'year-mm').val(((selectedDate.getMonth()+1)>9)?(selectedDate.getMonth()+1):('0'+(selectedDate.getMonth()+1))).trigger('blur');$('#'+inst.id+'year-dd').val(selectedDate.getDate()>9?selectedDate.getDate():'0'+selectedDate.getDate()).trigger('blur');},changeMonth: true,changeYear: true});if(document.getElementById('captcha_image')!=null){get_valid_captcha();}});if(document.getElementById('captcha_image')!=null){var isSafari = (/Safari/.test(navigator.userAgent));var firstTimeSession = 0;function process_captcha(){$('a#captcha_code_refresh').trigger('click');get_valid_captcha();}function safari_submit_session_form() {if (firstTimeSession == 0) {firstTimeSession = 1;$("#safari_sessionform").submit();setTimeout('process_captcha()',2000);}}if(isSafari){$("body").append('<iframe id="safari_sessionframe" name="safari_sessionframe" onload="safari_submit_session_form();" src=".emailmeform.com/get_safari_cookies.php" style="display:none;"></iframe><form id="safari_sessionform" enctype="application/x-www-form-urlencoded" action=".emailmeform.com/get_safari_cookies.php" target="safari_sessionframe" action="post"></form>');}}
    </script>
    
    ```Come posso fare per spedire le informazioni in questo form?
    
    Grazie Ubamongi