Pagina 1 van 4 123 ... LaatsteLaatste
Weergegeven resultaten: 1 t/m 10 van 32

Discussie: php mailform

  1. #1
    Up-to-date  
    Geregistreerd
    8 October 2010
    Berichten
    16
    Bedankjes
    1
    Bedankt
    0 keer in 0 posts

    php mailform

    Ik gebruik volgend script: http://users.skynet.be/javascript/fo...elwagentje.htm.
    Om het formulier te kunnen versturen heb ik Phorm (versie 3.5.2) gedownload van http://www.php-form.net/ en geïnstalleerd. Alles werkt perfect.
    Mijn probleem is het koppelen van het winkelwagentje formulier aan het php mailform, niet verwonderlijk omdat ik van php niets afweet.
    Is er soms iemand te vinden die zo bereidwillig is om mij een voorbeeld te bezorgen hoe beide aan elkaar te koppelen?
    Bij voorbaat reuze bedankt !

  2. #2
    Expert   Butterflyice's schermafbeelding
    Geregistreerd
    9 June 2006
    Berichten
    738
    Bedankjes
    34
    Bedankt
    636 keer in 410 posts
    Als je de code van de pagina geeft die je gekoppeld wilt hebben dan kunnen we er naar kijken.
    Ps heb je wel een webhosting die php ondersteund ?
    PHP-code:
    function handleException($e) { echo $e->getMessage(); }
            
    set_exception_handler("handleException");
                throw new 
    Exception("There is always a way");
            echo 
    "You caught me!"

  3. #3
    Up-to-date  
    Geregistreerd
    8 October 2010
    Berichten
    16
    Bedankjes
    1
    Bedankt
    0 keer in 0 posts
    Php-ondersteuning is ok, kant-en-klare php pakketjes werken zonder probleem.
    Je mag gewoon het voorbeeld nemen van de website (http://users.skynet.be/javascript/fo...elwagentje.htm).
    Al heel erg bedankt voor jouw reactie!

  4. #4
    Expert   Butterflyice's schermafbeelding
    Geregistreerd
    9 June 2006
    Berichten
    738
    Bedankjes
    34
    Bedankt
    636 keer in 410 posts
    Nee ik gebruik geen voorbeeld je moet wel zelf er wat voor doen.
    Je moet dus wel een pagina aanleveren met de codes die je wilt gebruiken en dat we dat gaan samenvoegen.
    Niet dat wij alles voor je gaan doen dan leer je er zelf nog n iets van.
    En als het dan weer fout loop moet je weer om hulp vragen.
    We helpen je gewoon met het aandragen van de juiste oplossing maar dan moet je zelf wel wat meer er voor doen dan alleen ons naar 2 linkjes verwijzen.
    PHP-code:
    function handleException($e) { echo $e->getMessage(); }
            
    set_exception_handler("handleException");
                throw new 
    Exception("There is always a way");
            echo 
    "You caught me!"

  5. De volgende 2 gebruikers bedanken Butterflyice voor deze nuttige post:

    Dexter ( 9 October 2010), R2D2 (25 October 2010)

  6. #5
    Up-to-date  
    Geregistreerd
    8 October 2010
    Berichten
    16
    Bedankjes
    1
    Bedankt
    0 keer in 0 posts
    1. winkelwagentje.htm

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>winkelwagentje.htm</title>
    <script type="text/javascript" src="winkelwagentje.js"></script>
    </head>
    <body>
    <form name="tel" method="get">
    <input type=hidden name="prijs" value="10.00">
    <input type=hidden name="prijs" value="20.00">
    <input type=hidden name="prijs" value="30.25">
    <input type=hidden name="prijs" value="40.50">
    <input type=hidden name="prijs" value="50.00">
    <!-- DIT VERDER UITBREIDEN INDIEN MEER PRODUCTEN -->
    <div align="center">
    <table border=1 width=400>
    <tr>
    <th>Product</th>
    <th>Kies</th>
    <th>Aantal</th>
    <th>Eenheidsprijs</th>
    </tr>
    <tr>
    <td>Product 1</td>
    <td><input type="checkbox" name="producten" value="Product 1"></td>
    <td><input type="text" name="aantaly" value="1" size=2></td>
    <td height="24"><p align="center">€ 10,00</td>
    </tr>
    <tr>
    <td>Product 2</td>
    <td><input type="checkbox" name="producten" value="Product 2"></td>
    <td><input type="text" name="aantaly" value="1" size=2></td>
    <td height="24"><p align="center">€ 20,00</td>
    </tr>
    <tr>
    <td>Product 3</td>
    <td><input type="checkbox" name="producten" value="Product 3"></td>
    <td><input type="text" name="aantaly" value="1" size=2></td>
    <td height="24"><p align="center">€ 30,25</td>
    </tr>
    <tr>
    <td>Product 4</td>
    <td><input type="checkbox" name="producten" value="Product 4"></td>
    <td><input type="text" name="aantaly" value="1" size=2></td>
    <td height="24"><p align="center">€ 40,50</td>
    </tr>
    <tr>
    <td>Product 5</td>
    <td><input type="checkbox" name="producten" value="Product 5"></td>
    <td><input type="text" name="aantaly" value="1" size=2></td>
    <td height="24"><p align="center">€ 50,00</td>
    </tr>
    <!-- DIT VERDER UITBREIDEN INDIEN MEER PRODUCTEN -->
    </table>
    </div>
    <p align="center">
    <input type="button" name="bestelknop" value="Bestellen" onclick="BestelLijst();document.forms[0].reset();window.location.reload();">
    <input type="button" name="resetknop" value="Alles Wissen" onclick="document.forms[0].reset();window.location.reload();"></p>
    </form>
    </body>
    </html>

    2. winkelwagentje.js

    // winkelwagentje.js
    // RESETTEN VAN DE VARIABELEN
    var aantal=0;
    var bedrag=0;
    var subtotaal=0;
    var totaal=0;
    // OPMAKEN POPUP: HTML, HEAD, TITLE
    function BestelLijst() {
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes");
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite("")
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','html','>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','head','>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','title>',' ... EVEN GEDULD TOT DE FACTUUR IS OPGEMAAKT ... ','<','/title>','\n')
    // SCRIPT VOOR CONTROLE OP GELDIG EMAIL-ADRES
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','script language=\"Javascript\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('function FControle','(formulier)',' {','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('if','(formulier.Emailadres.value.length <= 6 ||')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('formulier.Emailadres.value.indexOf (\'@\'\, 0) == -1 ||','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('formulier.Emailadres.value.indexOf (\'.\'\, 0) == -1')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('){','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('alert(\" Je hebt geen geldig e-mailadres ingevuld.\")','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('return false;','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('}','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('else {','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('alert (\"OK om te versturen? \")','\n')
    // ************************************************** *********************************
    // * HOE WORDT HET FORMULIER VERSTUURD? INDIEN MET MAILTO: JOUW EMAIL-ADRES INVULLEN *
    // ************************************************** *********************************
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('formulier.action=\"mailto:JOUW EMAILADRES\"','\n')
    // ************************************************** *************************************************
    // * DE URL VAN DE BEDANKINGSPAGINA INVULLEN ("antwoord.htm" VERVANGEN DOOR DE NAAM VAN JOUW PAGINA) *
    // ************************************************** *************************************************
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('location.href=\"antwoord.htm"','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('return true;','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('}','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('}','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','/script>','<','/head>','\n')
    // EINDE SCRIPT, EINDE HEAD, BEGIN BODY MET ACHTERGRONDKLEUR EN TEKSTKLEUR
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','body')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite(' bgcolor=\"#FFFFFF\" text=\"black\">')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','div align=\"center\">','\n')
    // BEGIN TABEL JOUW BESTELLING
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','table border=0 cellpadding=0 cellspacing=0 width=400>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=400 height=25 colspan=5 bgcolor=\"#999999\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<p align=\"center\"><font face=\"Arial\" size=\"3\" color=\"white\"><b>JOUW BESTELLING<\/b>','<\/font>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<\/td><\/tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','form name=\"formulier\" method=\"post\" enctype=\"text/plain\" onsubmit=\"JavaScript:return FControle(this);\">','\n')
    // SCRIPT VOOR DE BEREKENING VAN PRODUCTEN EN PRIJZEN

    // ************************************************** ****************************
    // * 5 IS HET AANTAL PRODUCTEN: DIT GETAL AANPASSEN AAN JOUW AANTAL PRODUCTEN ! *
    // ************************************************** ****************************
    for (i=0;i<=5;i++){

    if (document.tel.producten[i].checked){
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=300 colspan=2>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<font face=\"Arial\" size=2>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','input type=','\"','hidden','\"')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite(' name=','\"',(i+1),'\"',' value=')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('\"',(document.tel.producten[i].value),'\"')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('>')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite(document.tel.producten[i].value);
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite(" ");
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=70>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<p align=\"right\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<font face=\"Arial\" size=2>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite(document.tel.aantaly[i].value);
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite(" stuk ");
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite(" = ");
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=35>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<p align=\"right\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<font face=\"Arial\" size=2>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite(" € ");
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<i','nput type=','\"','hidden','\"')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite(' name=','\"','Aantal stuks','\"',' value=')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('\"',(document.tel.aantaly[i].value),'\"')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('>')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=50>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<p align=\"right\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<font face=\"Arial\" size=2>','\n')
    aantal= (document.tel.aantaly[i].value);
    bedrag= (document.tel.prijs[i].value);
    subtotaal= aantal*bedrag;
    totaal+=subtotaal ;
    // Voor wie een korting wenst te geven vanaf een bepaald bedrag, bijvoorbeeld -5% vanaf 100 euro:
    // if (totaal>=100){totaal=totaal-(totaal*5/100)}
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite(subtotaal.toFixed(2));
    subtotaal=0 ;
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<br>');
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<\/font><\/td>','\n')
    }
    else {}
    // ************************************************** *********************************
    // * 4 IS HET AANTAL PRODUCTEN - 1 : DIT GETAL AANPASSEN AAN JOUW AANTAL PRODUCTEN ! *
    // ************************************************** *********************************
    if (i==4) break ;}

    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<\/tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td colspan=5>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<br><font face=\"Arial\" size=2>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','input type=','\"','checkbox','\"')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite(' name=','\"','Totaal bedrag','\"',' value=')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('\"',(totaal),'\"')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite(' checked>')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<\/font>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<font face=\"Arial\" size=2>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite("<b>totaal: "+" ");
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite(totaal.toFixed(2));
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite(" EURO<\/b>");
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<\/font><br><br>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<\/td><\/tr>','\n')
    // BEGIN BESTELFORMULIER: NAAM, TELEFOON, EMAIL, ADRES
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=400 height=25 colspan=5 bgcolor=\"#999999\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<p align=\"center\"><font face=\"Arial\" size=\"3\" color=\"white\"><b>BESTELFORMULIER<\/b>','<\/font>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<\/td><\/tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<\/tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td bgcolor=\"#CCCCCC\"><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=170 bgcolor=\"#CCCCCC\"><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=70 bgcolor=\"#CCCCCC\"><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=35 bgcolor=\"#CCCCCC\"><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td bgcolor=\"#CCCCCC\"><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=400 height=1 colspan=5 bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<\/td><\/tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=130 height=15 valign=\"middle\" bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<font face=\"Arial\" size=2 color=\"black\"><b> <\/b><\/font>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<font face=\"Arial\" size=2 color=\"black\"> Naam: <\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=370 height=15 valign=\"middle\" colspan=\"4\" bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<font face=\"Arial\" size=2 color=\"#999999\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','input type=\"text\" name=\"Naam besteller\" maxlength=\"20\"> <\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<\/tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=130 height=15 valign=\"middle\" bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<font face=\"Arial\" size=2 color=\"black\"> Telefoon: <\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=370 height=15 valign=\"middle\" colspan=\"4\" bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<font face=\"Arial\" size=\"2\" color=\"#999999\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<i','nput type=\"text\" name=\"Telefoon\" maxlength=20 size=20><\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('</tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=130 height=15 valign=\"middle\" bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<font face=\"Arial\" size=2 color=\"black\"><b> <\/b><\/font>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<font face=\"Arial\" size=2 color=\"black\">E-mail: <\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=370 height=15 valign=\"middle\" colspan=\"4\" bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<font face=\"Arial\" size=2 color=\"#999999\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','input type=\"text\" name=\"Emailadres\" maxlength=\"25\" size=\"25\"><\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<\/tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=130 valign=\"top\" bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<font face=\"Arial\" size=2 color=\"black\"><b> <\/b></\font>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<font face=\"Arial\" size=2 color=\"black\">Adres: <\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=370 valign=\"middle\" colspan=4 bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<p align=\"left\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<font face=\"Arial\" size=2 color=\"#999999\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','textarea name=\"Besteladres\" rows=4 cols=40><\/textarea> <\/font><\/td>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<\/tr>','\n')
    // AANMAKEN VERZENDKNOP
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<tr>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<td width=500 height=12 align=\"center\" valign=\"middle\" colspan=\"5\" bgcolor=\"#CCCCCC\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<p align=\"center\">','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','input type=\"submit\" name=\"Submit\" value=\"Versturen\"> <\/td>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<\/tr>','\n')
    // AFSLUITEN FORMULIER, TABEL, BODY, HTML
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','\/form>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','\/table><\/div>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','\/body>','\n')
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.wr ite('<','\/html>','\n')
    }
    // ************************************************** ************************************************** ****************
    // * TIPS VOOR WIE AANPASSINGEN WENST TE MAKEN *
    // ************************************************** ************************************************** ****************
    // * De popup is een html-pagina, die dynamisch geschreven wordt met document.write(''). *
    // * *
    // * window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes") *
    // * gaat document.write('') enkel vooraf voor Windows XP SP2, omdat die anders de popup niet weergeeft. *
    // * Indien je op een testpagina die regel overal verwijdert zie je duidelijker de html-code. *
    // * Voer de gewenste aanpassingen uit en plaats die regel dan overal terug. *
    // ************************************************** ************************************************** ****************
    // * *
    // ************************************************** ************************************************** ****************

    3. antwoord.htm

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>antwoord</title>
    </head>
    <body>
    Jouw bestelling is goed ontvangen. We zullen deze moet de nodige zorg uitvoeren.
    </body>
    </html>

  7. #6
    Expert   Butterflyice's schermafbeelding
    Geregistreerd
    9 June 2006
    Berichten
    738
    Bedankjes
    34
    Bedankt
    636 keer in 410 posts
    Waar is je php code ?
    En de vogende keer graag in code tags zetten.
    Is alleen wel jammer want dit is gewoon het voorbeeld dat je nu opgeeft aan code.
    Dus volgens mij wordt dat niet echt reprezentatief voor waar je het voor wil gaan gebruiken.
    PHP-code:
    function handleException($e) { echo $e->getMessage(); }
            
    set_exception_handler("handleException");
                throw new 
    Exception("There is always a way");
            echo 
    "You caught me!"

  8. #7
    Up-to-date  
    Geregistreerd
    8 October 2010
    Berichten
    16
    Bedankjes
    1
    Bedankt
    0 keer in 0 posts
    Code:
    window.open("","win","left=10,top=10,width=450,hei ght=525,scrollbars=yes,resizable=yes").document.write('formulier.action=\"mailto:JOUW EMAILADRES\"','\n')
    window.open("","win","left=10,top=10,width=450,height=525,scrollbars=yes,resizable=yes").document.wr ite('location.href=\"antwoord.htm"','\n')
    Het gaat hier natuurlijk om een amateurwebsite, er wordt niets verkocht, bezoekers kunnen hier hun 'bestelling' plaatsen en naar mij doormailen.
    Indien ik mijn emailadres invul wordt het 'bestelformulier' netjes naar mezelf gestuurd, maar dat werkt niet bij iedereen, sommigen krijgen een lege mail te zien om te versturen.
    Om dit op te vangen had ik daarom graag geweten hoe je dit met php kunt doen.
    Het hoeft niet met Phorm te zijn, dit had ik geprobeerd maar de php kennis ontbreekt om de 'bestelpagina' op te maken.

  9. #8
    Expert   Butterflyice's schermafbeelding
    Geregistreerd
    9 June 2006
    Berichten
    738
    Bedankjes
    34
    Bedankt
    636 keer in 410 posts
    Dan denk ik dat je het beter helemaal in php kan maken met eventueel een jquery calutator erbij.
    Dus dan moeten we weten wat voor stoort velden heb je allemaal nodig ?
    Dan kunnen we je opweg helpen naar een script wat pas bij waar je het vor wilt gebruiken.
    PHP-code:
    function handleException($e) { echo $e->getMessage(); }
            
    set_exception_handler("handleException");
                throw new 
    Exception("There is always a way");
            echo 
    "You caught me!"

  10. De volgende gebruiker bedankt Butterflyice voor deze nuttige post:

    kurt0015 (10 October 2010)

  11. #9
    Up-to-date  
    Geregistreerd
    8 October 2010
    Berichten
    16
    Bedankjes
    1
    Bedankt
    0 keer in 0 posts
    Ik ben - zoals aangegeven - een beginner en kan het zelf niet beter maken dan de 'bestelpagina' die door het winkelwagentje script gegenereerd wordt.
    De gegevens van deze pagina zouden in mijn mailbox moeten toekomen.
    Bij sommige leden van onze club lukt dit perfect met mailto: bij anderen echter niet (ze krijgen enkel een lege mail om te verzenden te zien).
    Mijn vraag is bijgevolg of iemand een betere manier kent dan mailto: en indien bevestigend,
    hoe je precies tewerk gaat.
    Ik ging er vanuit dat een php-script volstond om mailto: te vervangen, misschien heb ik me hierin wel vergist.

  12. #10
    Expert   Butterflyice's schermafbeelding
    Geregistreerd
    9 June 2006
    Berichten
    738
    Bedankjes
    34
    Bedankt
    636 keer in 410 posts
    Nee met php kan je mailto vervangen maar je moet wel iets mee sturen wat je in de mail zou willen hebben.
    Is het zo als bij jouw een winkelmandje met vaste waardes die ze kunnen kiezen dan kunnen we hiervoor wel een scriptje maken.
    met bv cheakboxen die ze kunnen aanvinken en dat dan de waarde daarvan berekend word en deze na akkoord kan verstuurd worden.

    Dus als je zo iets wil dan wil ik dat best voor je maken.
    Dan kan je aangeven wat je er allemaal in wilt hebben.
    PHP-code:
    function handleException($e) { echo $e->getMessage(); }
            
    set_exception_handler("handleException");
                throw new 
    Exception("There is always a way");
            echo 
    "You caught me!"

Discussie informatie

Users Browsing this Thread

Momenteel bekijken 1 gebruikers deze discussie. (0 leden en 1 gasten)

Soortgelijke discussies

  1. php.mailform heeft kuren?
    Door sane in forum Webdevelopment & Programming
    Reacties: 5
    Laatste bericht: 16 January 2009, 17:25
  2. Problemen met mailform in flash
    Door bubsy119 in forum Webdevelopment & Programming
    Reacties: 3
    Laatste bericht: 16 December 2007, 21:49

Favorieten/bladwijzers

Favorieten/bladwijzers

Regels voor berichten

  • Je mag geen nieuwe discussies starten
  • Je mag niet reageren op berichten
  • Je mag geen bijlagen versturen
  • Je mag niet je berichten bewerken
  •