aspe... che spiego bene...
allora ho fatto un form da compilare ...
Codice PHP:
d
<form id="form1" name="form1" method="post" action="form_mail.asp?lang=<%response.write (linguapag)%>
... tutti i vari campi
</form>
premendo il tasto invia vengono registrati i dati tramite questa pagina:
Codice PHP:
<%@LANGUAGE = JScript%>
<%
var destinatario = "info@mail.it"; // Inserisci qui il tuo indirizzo email
// Recupero i dati dal modulo
//var linguapag2 = new String(Request.querystring("lang"));
var nomeazienda = new String(Request.Form("nomeazienda"));
var nome = new String(Request.Form("nome"));
var email = new String(Request.Form("email"));
var oggetto = new String(Request.Form("oggetto"));
var citta = new String(Request.Form("citta"));
var regione = new String(Request.Form("regione"));
var stato = new String(Request.Form("stato"));
//var importanza = new String(Request.Form("0"));
var messaggio = new String(Request.Form("messaggio"));
var telefono = new String(Request.Form("telefono"));
var html = new String(Request.Form("0"));
// RegExp per l'email
var valida = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
// Imposto la data
var oggi = new Date();
var data = oggi.getDate() + "/" + (oggi.getMonth() + 1) + "/" + oggi.getYear() + " alle ore " + oggi.getHours() + ":" + oggi.getMinutes();
// Imposto l'indirizzo IP del mittente
var ip = Request.ServerVariables("REMOTE_ADDR");
// Creo la classe CDONTS.NewMail ed invio l'email
var OggettoCDONTS = new ActiveXObject("CDONTS.NewMail");
//OggettoCDONTS.Importance = importanza;
OggettoCDONTS.From = email;
OggettoCDONTS.To = destinatario;
var oggetto2
oggetto2 = "Mail dal sito Officinalis.net"
OggettoCDONTS.Subject = oggetto2;
// Verifica se la mail è in formato Html
if ((html == "") || (html == "undefined")) {
OggettoCDONTS.BodyFormat = 1;
OggettoCDONTS.MailFormat = 1;
OggettoCDONTS.Body = "Dati del mittente:\n\nOggetto: " + oggetto + "\nNome Azienda: " + nomeazienda + "\nNome di riferimento: " + nome + "\nEmail: " + email + "\nNumero Di Telefono: " + telefono+ "\nCittà: " + citta+ "\nRegione: " + regione + "\n\nQuesto è il corpo del messaggio:\n" + messaggio + "\n\n\nIP: " + ip + "Messaggio spedito il " + data;
}
else {
OggettoCDONTS.BodyFormat = 0;
OggettoCDONTS.MailFormat = 0;
OggettoCDONTS.Body = "[b]Dati del mittente
Nome Azienda:[/b] " + nomeazienda + "
[b]Nome di Riferimento:[/b] " + nome + "
[b]Email:[/b] " + email + "[b]Numero di telefono:[/b] " + telefono + "
[b]IP[/b]: " + ip + "
[i]Messaggio spedito il " + data + "[/i]
[b]Questo è il corpo del messaggio:[/b]
" + messaggio;
}
OggettoCDONTS.Send();
// Reindirizzo il mittente verso la pagina di conferma
Response.Redirect("conferma_invio.asp?lang="& Request.querystring("lang"));
e poi in base alla lingua mi fa il redirect verso questa pagina conferma_invio.asp...
però non mi funzia il redirect..