Ik heb het gemaakt,
Ik heb het script helemaal opnieuw gescript.
Dus hier heb je niets meer aan.
Met vriendelijke groet,
Bart
Ik heb het script helemaal opnieuw gescript.
Dus hier heb je niets meer aan.
Met vriendelijke groet,
Bart
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]inc/functie.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]style.css[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/ctype_alpha"]ctype_alpha[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]kies[/COLOR][COLOR= #007700])){[/COLOR]
head[COLOR= #007700]([/COLOR][COLOR= #DD0000]"Pakket - Kies"[/COLOR][COLOR= #007700]);[/COLOR]
?>
<h1>Kies uw pakket</h1>
</div>
<div id="content">
<div style="width: 480px; float: left; padding-left: 20px;">
Hier kunt u uw pakket kiezen.<br />
U kunt kiezen uit:<br />
<center><a href="bestel/kies/1"><img src="img/box1.png" alt="pakket1" width="100px" height="100px" /></a> <a href="bestel/kies/2"><img src="img/box2.png" alt="pakket2" width="100px" height="100px" /></a> <a href="bestel/kies/3"><img src="img/box3.png" alt="pakket3" width="100px" height="100px" /></a><br /><br />
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/ctype_digit"]ctype_digit[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]c[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]1[/COLOR][COLOR= #007700])){[/COLOR]
head[COLOR= #007700]([/COLOR][COLOR= #DD0000]"Pakket - Pakket 1"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]]) ||[/COLOR] [URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]achternaam[/COLOR][COLOR= #007700]]) ||[/COLOR] [URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]mail[/COLOR][COLOR= #007700]]) ||[/COLOR] [URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opdracht[/COLOR][COLOR= #007700]])){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]U heeft niet alles 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]Er word zo spoedig mogelijk contact opgenomen met u.[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$mail[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"bestellingen@trixo.eu"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$subject[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"trixo | Nieuwe bestelling (pakket 1)"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"MIME-Version: 1.0"[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Content-type: text/html; charset=iso-8859-1"[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"From: zairo.nl <noreplay@zairo.nl>"[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"X-Mailer: PHP v"[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/phpversion"]phpversion[/URL][COLOR= #007700]().[/COLOR] [COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR][COLOR= #DD0000]
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<html>
<head>
</head>
<body>
<table align="center" width="550" cellspacing="0" cellpadding="0">
<tr>
<td style="border-left: 1px solid #6D6D6D; border-right: 1px solid #6D6D6D; border-top: 1px solid #6D6D6D; font: 12px Verdana; padding-top: 10px; padding-bottom: 10px;">
<strong>Er is een nieuwe bestelling!</strong> (pakket 1)<br />
Naam van besteller: [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]] .[/COLOR][COLOR= #DD0000] [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]achternaam[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]<br />
Email adres van besteller: [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]mail[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]<br />
Betalings methode van besteller: [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]pay[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]<br />
Opdracht:<br />
[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opdracht[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]
</td>
</tr>
</table>
</body>
</html> [/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$mail[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$subject[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$headers[/COLOR][COLOR= #007700]);
}
}[/COLOR]
?>
<h1>Pakket - Pakket 1</h1>
</div>
<div id="content">
<div style="width: 480px; float: left; padding-left: 20px;">
<form name="pakket1" action="#" method="POST">
<strong>Naam:</strong><br />
<input type="text" name="naam" /><br />
<strong>Achternaam: (met tussen voegsel)</strong><br />
<input type="text" name="achternaam" /><br />
<strong>Email adres:</strong><br />
<input type="text" name="mail" /><br />
<strong>Betalings methode:</strong><br />
<select name="pay" class="input">
<option name="paypal" value="1">paypal</option>
<option name="wallie" value="2">Wallie card</option>
</select><br />
<strong>Opdracht: (probeer zo precies mogelijk te zijn)</strong><br />
<textarea rows="70" cols="120" name="opdracht"></textarea><br />
<input type="submit" value="Bestel" name="submit"/><br />
<h5><i>De prijs word per mail gestuurd</i></h5>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}
}[/COLOR]
foot[COLOR= #007700]();[/COLOR]
?> if(ctype_alpha($_GET[p] == kies))
moet
if(ctype_alpha($_GET[p]) == kies) 
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/ctype_alpha"]ctype_alpha[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]]) &&[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]] ===[/COLOR] [COLOR= #DD0000]kies[/COLOR][COLOR= #007700])[/COLOR]
?> [COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]]) &&[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]] ===[/COLOR] [COLOR= #DD0000]kies[/COLOR][COLOR= #007700])[/COLOR]
?> 
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]inc/functie.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/ctype_alpha"]ctype_alpha[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]]) &&[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]] ===[/COLOR] [COLOR= #DD0000]kies[/COLOR][COLOR= #007700]){[/COLOR]
head[COLOR= #007700]([/COLOR][COLOR= #DD0000]"Pakket - Kies"[/COLOR][COLOR= #007700]);[/COLOR]
?>
<h1>Kies uw pakket</h1>
</div>
<div id="content">
<div style="width: 480px; float: left; padding-left: 20px;">
Hier kunt u uw pakket kiezen.<br />
U kunt kiezen uit:<br />
<center><a href="bestel/kies/1"><img src="img/box1.png" alt="pakket1" width="100px" height="100px" /></a> <a href="bestel/kies/2"><img src="img/box2.png" alt="pakket2" width="100px" height="100px" /></a> <a href="bestel/kies/3"><img src="img/box3.png" alt="pakket3" width="100px" height="100px" /></a></center><br /><br />
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]c[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/ctype_digit"]ctype_digit[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]c[/COLOR][COLOR= #007700]]) ==[/COLOR] [COLOR= #DD0000]1[/COLOR][COLOR= #007700]){[/COLOR]
head[COLOR= #007700]([/COLOR][COLOR= #DD0000]"Pakket - Pakket 1"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]]) ||[/COLOR] [URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]achternaam[/COLOR][COLOR= #007700]]) ||[/COLOR] [URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]mail[/COLOR][COLOR= #007700]]) ||[/COLOR] [URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opdracht[/COLOR][COLOR= #007700]])){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]U heeft niet alles 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]Er word zo spoedig mogelijk contact opgenomen met u.[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$mail[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"bestellingen@trixo.eu"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$subject[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"trixo | Nieuwe bestelling (pakket 1)"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"MIME-Version: 1.0"[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Content-type: text/html; charset=iso-8859-1"[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"From: zairo.nl <noreplay@zairo.nl>"[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"X-Mailer: PHP v"[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/phpversion"]phpversion[/URL][COLOR= #007700]().[/COLOR] [COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR][COLOR= #DD0000]
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<html>
<head>
</head>
<body>
<table align="center" width="550" cellspacing="0" cellpadding="0">
<tr>
<td style="border-left: 1px solid #6D6D6D; border-right: 1px solid #6D6D6D; border-top: 1px solid #6D6D6D; font: 12px Verdana; padding-top: 10px; padding-bottom: 10px;">
<strong>Er is een nieuwe bestelling!</strong> (pakket 1)<br />
Naam van besteller: [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]] .[/COLOR][COLOR= #DD0000] [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]achternaam[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]<br />
Email adres van besteller: [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]mail[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]<br />
Betalings methode van besteller: [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]pay[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]<br />
Opdracht:<br />
[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opdracht[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]
</td>
</tr>
</table>
</body>
</html> [/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$mail[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$subject[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$headers[/COLOR][COLOR= #007700]);
}
}[/COLOR]
?>
<h1>Pakket - Pakket 1</h1>
</div>
<div id="content">
<div style="width: 480px; float: left; padding-left: 20px;">
<form name="pakket1" action="#" method="POST">
<strong>Naam:</strong><br />
<input type="text" name="naam" /><br />
<strong>Achternaam: (met tussen voegsel)</strong><br />
<input type="text" name="achternaam" /><br />
<strong>Email adres:</strong><br />
<input type="text" name="mail" /><br />
<strong>Betalings methode:</strong><br />
<select name="pay" class="input">
<option name="paypal" value="1">paypal</option>
<option name="wallie" value="2">Wallie card</option>
</select><br />
<strong>Opdracht: (probeer zo precies mogelijk te zijn)</strong><br />
<textarea rows="70" cols="120" name="opdracht"></textarea><br />
<input type="submit" value="Bestel" name="submit"/><br />
<h5><i>De prijs word per mail gestuurd</i></h5>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}
}[/COLOR]
foot[COLOR= #007700]();[/COLOR]
?>