Ciao a tutti!
io ho questo form in php che si interfaccia con flash perfettamente funzionante... ma il server in cui sarà ospitato il sito supporta solo ASP..
ora è possibile convertire questo codice PHP in ASP senza dover rifare tutto??
In Asp non sò una mazza .. mi potete aiutare??![]()
![]()
codice:<?php $adminaddress = "info@miosito"; $siteaddress ="http://www.miosito.it"; $sitename = "miosito"; //non cambiare niente // 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); // Gets the POST Headers - the Flash variables $action = $HTTP_POST_VARS['action'] ; $mail = $HTTP_POST_VARS['mail'] ; $nome = $HTTP_POST_VARS['nome'] ; $cognome = $HTTP_POST_VARS['cognome'] ; $azienda = $HTTP_POST_VARS['azienda'] ; $testo = $HTTP_POST_VARS['testo'] ; //Process the form data! // and send the information collected in the Flash form to Your nominated email address if ($action == "send") { // mail ("$adminaddress","Email da sito", "il visitatore del sito ha lasciato le seguenti informazioni\n Nome: $nome Cognome:$cognome Azienda:$azienda Email: $mail\n Il suo commento: ------------------------------ $testo Info registrate : ------------------------------ Using: $HTTP_USER_AGENT Hostname: $ip IP address: $REMOTE_ADDR Date/Time: $date","FROM:$adminaddress" ) ; //This sends a confirmation to your visitor mail ("$mail","Grazie per aver visitato $sitename", "Egregio $nome $cognome,\n la ringraziamo per averci contattato dal nostro sito: $sitename!\n le risponderemo appena possibile Cordiali Saluti, $sitename $siteaddress","FROM:$adminaddress") ; //Confirmation is sent back to the Flash form that the process is complete $sendresult = "Grazie riceveraà un e-mail di conferma"; $send_answer = "answer="; $send_answer .= rawurlencode($sendresult); echo $send_answer; } // ?> ?>

Rispondi quotando