Mail faal

Gestart doorMikeb89 reacties548 weergaven

90 berichten · pagina 2 van 6

Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Als ik dit gespoilerde script zie vraag ik me af of ik soms gewoon tegen een deur aan sta te praten..
Sneu :/
0
Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Maartenl schreef:
Eerdere citaten tonen
Dylanh schreef:
$result = mysql_query("insert into customers(bedrijf, voornaam, achternaam, email, adres, postcode, plaats, land, tel, mob, kvk, btw) values($_POST[bedrijf],$_POST[voornaam],$_POST[achternaam],$_POST[email],$_POST[adres],$_POST[postcode],$_POST[plaats],$_POST[land],$_POST[tel],$_POST[mob],$_POST[kvk],$_POST[btw])");        $customerid=mysql_insert_id();
        $date=date(Y-m-d);
        $result = mysql_query("insert into orders values(,$date,$customerid)");
                mysql_real_escape_string($result);
        $orderid=mysql_insert_id();
        
        $max=count($_SESSION[cart]);
        for($i=0;$i<$max;$i++){
            $pid=$_SESSION[cart][$i][productid];
            $q=$_SESSION[cart][$i][qty];
            $price=get_price($pid);
            $result = mysql_query("insert into order_detail values ($orderid,$pid,$q,$price)");
                      mysql_real_escape_string($result);
nu post je geen mail?
In zijn script wel emoEn jouw code is fout, alweer.

ik heb in dit topic nog geen scripts gepost?? ja behalve

$result = mysql_query("insert into customers(bedrijf, voornaam, achternaam, email, adres, postcode, plaats, land, tel, mob, kvk, btw) values($_POST[bedrijf],$_POST[voornaam],$_POST[achternaam],$_POST[email],$_POST[adres],$_POST[postcode],$_POST[plaats],$_POST[land],$_POST[tel],$_POST[mob],$_POST[kvk],$_POST[btw])");        $customerid=mysql_insert_id();
        $date=date(Y-m-d);
        $result = mysql_query("insert into orders values(,$date,$customerid)");
                mysql_real_escape_string($result);
        $orderid=mysql_insert_id();
        
        $max=count($_SESSION[cart]);
        for($i=0;$i<$max;$i++){
            $pid=$_SESSION[cart][$i][productid];
            $q=$_SESSION[cart][$i][qty];
            $price=get_price($pid);
            $result = mysql_query("insert into order_detail values ($orderid,$pid,$q,$price)");
                      mysql_real_escape_string($result);


Maar hier heb ik niks in veranderd.

toevoeging op 23 juni 2012, 17:08:07:

[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"<br><br>"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ref[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]voornaam[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"U heeft geen voornaam ingevuld."[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]achternaam[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"U heeft geen achternaam ingevuld"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"Geen emailadres ingevuld!"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"Uw bestelling is succesvol ontvangen<br>Controleer uw email voor de factuur."[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$van[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$afzendermail[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$to[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$ow[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Bestelling"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$inh[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Geachte heer/mevrouw,nBedankt voor de bestelling bij WEBSITE.comnHieronder vindt u een factuur met uw gegevens en de bestelde producten:nn
Gegevens:nBedrijf: <strong>"[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bedrijf[/COLOR][COLOR= #007700]][/COLOR][COLOR= #DD0000]"</strong>nVoornaam: <strong>"[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]voornaam[/COLOR][COLOR= #007700]][/COLOR][COLOR= #DD0000]"</strong>nAchternaam: "[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]achternaam[/COLOR][COLOR= #007700]][/COLOR][COLOR= #DD0000]"n Emailadres: "[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]][/COLOR][COLOR= #DD0000]"nAdres: "[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]adres[/COLOR][COLOR= #007700]][/COLOR][COLOR= #DD0000]"nPostcode: "[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]postcode[/COLOR][COLOR= #007700]][/COLOR][COLOR= #DD0000]"nPlaats: "[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]plaats[/COLOR][COLOR= #007700]][/COLOR][COLOR= #DD0000]"nLand: $_POST[land]nTelefoonnummer: $_POST[tel]nMobiele nummer: $_POST[mob]nKamer van Koophandel: $_POST[kvk]nBTW-nummer: $_POST[btw]"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$success[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$to[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$ow[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$inh[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"From: <"[/COLOR][COLOR= #0000BB]$van[/COLOR][COLOR= #DD0000]">"[/COLOR][COLOR= #007700]);[/COLOR]
                [COLOR= #0000BB]$customerid[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/mysql_insert_id"]mysql_insert_id[/URL][COLOR= #007700]();[/COLOR]
        [COLOR= #0000BB]$date[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Y-m-d[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"insert into orders values(,$date,$customerid)"[/COLOR][COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$orderid[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/mysql_insert_id"]mysql_insert_id[/URL][COLOR= #007700]();[/COLOR]
        
        [COLOR= #0000BB]$max[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/count"]count[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]cart[/COLOR][COLOR= #007700]]);[/COLOR]
        [URL="http://www.php.net/for"]for[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]<[/COLOR][COLOR= #0000BB]$max[/COLOR][COLOR= #007700];[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]++){[/COLOR]
            [COLOR= #0000BB]$pid[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]cart[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]productid[/COLOR][COLOR= #007700]];[/COLOR]
            [COLOR= #0000BB]$q[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]cart[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]qty[/COLOR][COLOR= #007700]];[/COLOR]
            [COLOR= #0000BB]$price[/COLOR][COLOR= #007700]=[/COLOR]get_price[COLOR= #007700]([/COLOR][COLOR= #0000BB]$pid[/COLOR][COLOR= #007700]);[/COLOR]
            [COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"insert into order_detail values ($orderid,$pid,$q,$price)"[/COLOR][COLOR= #007700]);[/COLOR]
                      [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]);
}}}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
?>


Let op:
Op line 17:
je hebt $_POST[postnaam]; moet $_POST[postnaam] zijn.
je hebt nTelefoonnummer: $_POST[postnaam] moet nTelefoonnummer: "$_POST[postnaam]" zijn.
In het begin heb ik al wat voor gedaan!

Querys:
jij hebt
$result = mysql_query("insert into order_detail values ($orderid,$pid,$q,$price)");
                      mysql_real_escape_string($result);


moet:

result = mysql_query("INSERT INTO order_detail VALUES (
"$orderid","$pid","$q","$price")");


toevoeging op 23 juni 2012, 171017:
zorg ook dat je:
(bijv)
$max=count($_SESSION[cart]);

moet
$max= count($_SESSION[cart]);
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
en variabelen buiten quotes.
0
Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
btw $van kan ook gwn $afzendermail zijn
0
Mikeb

Lid · Topicstarter

Berichten
6.356
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Het gaat mij erom dat het woord gegevens dikgedrukt moet worden
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
HTML-header meegeven.....
0
Mikeb

Lid · Topicstarter

Berichten
6.356
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Zie regel 31. gegevens: moet dikgedrukt worden. wink
(code)
[COLOR= #0000BB]<?php[/COLOR]
    [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"includes/db.php"[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"includes/functions.php"[/COLOR][COLOR= #007700]);[/COLOR]
    
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Cameramast.com - Afrekenen</title>
</head>


<body>
[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"<br><br>"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ref[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]voornaam[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"U heeft geen voornaam ingevuld."[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]achternaam[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"U heeft geen achternaam ingevuld"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"Geen emailadres ingevuld!"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"Uw bestelling is succesvol ontvangen<br>Controleer uw email voor de factuur."[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$van[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"$afzendermail"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$to[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$ow[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Bestelling"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$inh[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Geachte heer/mevrouw,nBedankt voor de bestelling bij SITEnHieronder vindt u een factuur met uw gegevens en de bestelde producten:nn
Gegevens:nBedrijf: $_POST[bedrijf]nVoornaam: $_POST[voornaam]nAchternaam: $_POST[achternaam]n Emailadres: $_POST[email]nAdres: $_POST[adres]nPostcode: $_POST[postcode]nPlaats: $_POST[plaats]nLand: $_POST[land]nTelefoonnummer: $_POST[tel]nMobiele nummer: $_POST[mob]nKamer van Koophandel: $_POST[kvk]nBTW-nummer: $_POST[btw]"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$success[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$to[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$ow[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$inh[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"From: <$van>"[/COLOR][COLOR= #007700]);[/COLOR]
                [COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"insert into customers(bedrijf, voornaam, achternaam, email, adres, postcode, plaats, land, tel, mob, kvk, btw) values($_POST[bedrijf],$_POST[voornaam],$_POST[achternaam],$_POST[email],$_POST[adres],$_POST[postcode],$_POST[plaats],$_POST[land],$_POST[tel],$_POST[mob],$_POST[kvk],$_POST[btw])"[/COLOR][COLOR= #007700]);[/COLOR]        
[COLOR= #0000BB]$customerid[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/mysql_insert_id"]mysql_insert_id[/URL][COLOR= #007700]();[/COLOR]
        [COLOR= #0000BB]$date[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Y-m-d[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"insert into orders values(,$date,$customerid)"[/COLOR][COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$orderid[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/mysql_insert_id"]mysql_insert_id[/URL][COLOR= #007700]();[/COLOR]
        
        [COLOR= #0000BB]$max[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/count"]count[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]cart[/COLOR][COLOR= #007700]]);[/COLOR]
        [URL="http://www.php.net/for"]for[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]<[/COLOR][COLOR= #0000BB]$max[/COLOR][COLOR= #007700];[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]++){[/COLOR]
            [COLOR= #0000BB]$pid[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]cart[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]productid[/COLOR][COLOR= #007700]];[/COLOR]
            [COLOR= #0000BB]$q[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]cart[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]qty[/COLOR][COLOR= #007700]];[/COLOR]
            [COLOR= #0000BB]$price[/COLOR][COLOR= #007700]=[/COLOR]get_price[COLOR= #007700]([/COLOR][COLOR= #0000BB]$pid[/COLOR][COLOR= #007700]);[/COLOR]
            [COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"insert into order_detail values ($orderid,$pid,$q,$price)"[/COLOR][COLOR= #007700]);[/COLOR]
                      [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]);
}}}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
?>
    </p>
    <form name="form1" method="POST" action="">
  <div align="center">
        <h1 align="center">Afrekenen</h1>
        <table border="0" cellpadding="2px">
            <tr><td>Totaal bedrag:</td><td>&euro; [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] get_order_total[COLOR= #007700]()[/COLOR]?></td></tr>
            <tr><td>Bedrijf:</td><td><input type="text" name="bedrijf" is="bedrijf" /></td></tr>
            <tr><td>Voornaam:</td><td><input type="text" name="voornaam" id="voornaam" /></td></tr>
            <tr><td>Achternaam:</td><td><input type="text" name="achternaam" id="achternaam" /></td></tr>
            <tr><td>Email:</td><td><input type="text" name="email" id="email" /></td></tr>
            <tr><td>Adres:</td><td><input type="text" name="adres" id="adres" /></td></tr>
            <tr><td>Postcode:</td><td><input type="text" name="postcode" id="postcode" /></td></tr>
            <tr><td>Plaats:</td><td><input type="text" name="plaats" id="plaats" /></td></tr>
            <tr><td>Land:</td><td><input type="text" name="land" id="land" /></td></tr>
            <tr><td>Telefoonnummer:</td><td><input type="text" name="tel" id="tel" /></td></tr>
            <tr><td>Mobiele nummer:</td><td><input type="text" name="mob" id="mob"/></td></tr>
            <tr><td>Kamer van Koophandel:</td><td><input type="text" name="kvk" id="kvk" /></td></tr>
            <tr><td>BTW-nummer:</td><td><input type="text" name="btw" id="btw" /></td></tr>
            <tr><td>&nbsp;</td><td><input type="submit" value="Plaats bestelling" /></td></tr>
        </table>
    </div>
</form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
</body>
</html>
0
Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Gegevens:nBedrijf: "$_POST[bedrijf]"

?
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
En HTML-headers meegeven.

Problem solved.............
0
Mikeb

Lid · Topicstarter

Berichten
6.356
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
HTML-headers meegeven?
Oja btw, dat ene bericht met al die linkjes erin snap ik geen hol van yummieBen niet goed in php en dat is wel te zien denk ik, haha confused
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Wat houdt je dan tegen om even te googlen?
klikje

Juist smile
0
Mikeb

Lid · Topicstarter

Berichten
6.356
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja misschien had ik dat al gedaan en snap ik er geen reet van van wat er verteld wordt?
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Wat snap je dan niet? Wat heb je al geprobeerd?
Er staan zat voorbeelden, heel wat uitleg, dus ergens loop je op vast?
0
Mikeb

Lid · Topicstarter

Berichten
6.356
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik snap niet wat er bedoeld wordt met die headers en de uitleg snap ik ook niet confusedIk heb verder ook niks geprobeerd en dat komt omdat ik het niet snap.. confused
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
http://php.net/manual/en/function.mail.php

Example 4, php.net, eerste hit.....
Dat is gewoon de oplossing.

Quote:
It is also possible to send HTML email with mail().
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren