Als ik dit gespoilerde script zie vraag ik me af of ik soms gewoon tegen een deur aan sta te praten..
Sneu :/
Sneu :/
Maartenl schreef:In zijn script welnu post je geen mail?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);
En jouw code is fout, alweer.$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); [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]
?> $result = mysql_query("insert into order_detail values ($orderid,$pid,$q,$price)");
mysql_real_escape_string($result); result = mysql_query("INSERT INTO order_detail VALUES (
"$orderid","$pid","$q","$price")");
17:
[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>€ [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> </td><td><input type="submit" value="Plaats bestelling" /></td></tr>
</table>
</div>
</form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
</body>
</html>
Ben niet goed in php en dat is wel te zien denk ik, haha 
Ik heb verder ook niks geprobeerd en dat komt omdat ik het niet snap.. 