Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    invio ordine tramite email

    gentilissimi signori...ho un modulo di invio ordine..da completare, ma mi manca l'invio tramite email..e non riesco a capire come si fa..
    qualcuno può darmi 1 mano? o +...
    cioè lo script crea tutti i dati del cliente e li stampa..ma poi finisce li..
    mi serve di inviare i dati tramite email..aiutatemi

    questo è lo script

    <script type="text/JavaScript">
    var topFrame=parent.parent.parent;
    var orderFrame=parent;
    var coreFrame=topFrame.extra.core;
    if (coreFrame.ordStage==0)
    this.location="ordertotal.html";
    function loadBil(f) {
    if(topFrame.coreLoaded) {
    coreFrame.theCustomer.loadBil(f);
    }
    }

    function printOrder() {
    if (orderFrame.getBilDtl(document.orderForm, "customer_name,customer_street,customer_city,custo mer_zip,customer_country,customer_email")) {
    orderFrame.printOrder();
    }
    }
    function loadBask(){
    if(topFrame.coreLoaded)
    if(coreFrame.theBsk.itms.count == 0) coreFrame.theBsk.loadBsk();
    }
    function showField(title) {
    document.writeln("<tr>");
    document.writeln("<td><font face=\"ARIAL\" size=\"2\">");
    switch (title) {
    case "NAME": document.writeln("Nome e cognome");
    break;
    case "COMPANY": document.writeln("Nome azienda");
    break;
    case "STREET": document.writeln("Via");
    break;
    case "CITY": document.writeln("Città");
    break;
    case "STATE": document.writeln("Stato (se applicabile)");
    break;
    case "ZIP": document.writeln("Codice postale");
    break;
    case "COUNTRY": document.writeln("Paese");
    break;
    case "PHONE": document.writeln("Telefono");
    break;
    case "FAX": document.writeln("Fax");
    break;
    case "EMAIL": document.writeln("Posta elettronica");
    }
    document.writeln(":</font></td><td><font face=\"ARIAL\" size=\"2\">");
    switch (title) {
    case "NAME": document.writeln("<input type=\"text\" name=\"customer_name\" size=\"30\" value=\"\">");
    break;
    case "COMPANY": document.writeln("<input type=\"text\" name=\"company_name\" size=\"30\" value=\"\">");
    break;
    case "STREET": document.writeln("<input type=\"text\" name=\"customer_street\" size=\"30\" value=\"\">");
    break;
    case "CITY": document.writeln("<input type=\"text\" name=\"customer_city\" size=\"20\" value=\"\">");
    break;
    case "STATE": document.writeln("<input type=\"text\" name=\"customer_state\" size=\"20\" maxlength=\"20\" value=\"\">");
    break;
    case "ZIP": document.writeln("<input type=\"text\" name=\"customer_zip\" size=\"20\" maxlength=\"10\" value=\"\">");
    break;
    case "COUNTRY": document.writeln("<input type=\"text\" name=\"customer_country\" size=\"20\" maxlength=\"20\" value=\"\">");
    break;
    case "PHONE": document.writeln("<input type=\"text\" name=\"customer_phone\" size=\"20\" maxlength=\"30\" value=\"\">");
    break;
    case "FAX": document.writeln("<input type=\"text\" name=\"customer_fax\" size=\"20\" maxlength=\"30\" value=\"\">");
    break;
    case "EMAIL": document.writeln("<input type=\"text\" name=\"customer_email\" size=\"30\" maxlength=\"50\" value=\"\">");
    }
    document.writeln("</font></td></tr>");
    }
    </script>
    CHI SONO FA MOSTRIARE!
    http://www.shadowofdead.com
    http://it2.php.net/manual/it/index.php

  2. #2
    Utente di HTML.it L'avatar di hcka
    Registrato dal
    Oct 2002
    Messaggi
    435
    Con js non puoi inviare mail se non sfruttando la direttiva dell href "mailto" che però necessita del supporto software di un client o comunque un qualcosa sul computer client...

    Per inviare una mail senza che l'utente faccia nulla devi utilizzare un linguaggio lato server (php o asp).

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.