PHP Error

Gestart doorEwan27 reacties92 weergaven

28 berichten · pagina 2 van 2

Ewan

Lid · Topicstarter

Berichten
8.302
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Spoiler tonen
[COLOR= #0000BB]<?php
            $cmail[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"helpdesk@filmings.co.cc"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Jouw email adres hier.[/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]"voornaam"[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"achternaam"[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"email"[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"adres"[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"postcode"[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"woonplaats"[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR]
            [COLOR= #0000BB]$fouten[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/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]"voornaam"[/COLOR][COLOR= #007700]])) {[/COLOR]
                [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
                [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen voornaam ingevoerd<br />"[/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]"achternaam"[/COLOR][COLOR= #007700]])) {[/COLOR]
                [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
                [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen achternaam ingevoerd<br />"[/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]"email"[/COLOR][COLOR= #007700]])) {[/COLOR]
                [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
                [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen email-adres ingevoerd<br />"[/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]"adres"[/COLOR][COLOR= #007700]])) {[/COLOR]
                [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
                [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen adres ingevoerd<br />"[/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]"postcode"[/COLOR][COLOR= #007700]])) {[/COLOR]
                [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
                [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen postcode ingevoerd<br />"[/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]"email"[/COLOR][COLOR= #007700]])) {[/COLOR]
                [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
                [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen woonplaats ingevoerd<br />"[/COLOR][COLOR= #007700];
                }[/COLOR]
    
                [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$fout[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
                ?>
                <form action="" method="POST">
            <table width="450px">
            </tr>
            <tr>
             <td valign="top">
              Voornaam:
             </td>
             <td valign="top">
              <input type="text" name="voornaam" maxlength="50" size="50">
             </td>
            </tr> 
            <tr>
             <td valign="top">
              Achternaam:
             </td>
             <td valign="top">
              <input type="text" name="achternaam" maxlength="50" size="50">
             </td>
            </tr>
            <tr>
             <td valign="top">
              Email:
             </td>
             <td valign="top">
              <input type="text" name="email" maxlength="100" size="50">
             </td>
            </tr> 
            <tr>
             <td valign="top">
              Adres:
             </td>
             <td valign="top">
              <input type="text" name="adres" maxlength="100" size="50">
             </td>
            </tr> 
            <tr>
             <td valign="top">
              Postcode:
             </td>
             <td valign="top">
              <input type="text" name="postcode" maxlength="6" size="50">
             </td>
            </tr> 
            <tr>
             <td valign="top">
              Woonplaats:
             </td>
             <td valign="top">
              <input type="text" name="woonplaats" maxlength="50" size="50">
             </td>
            </tr> 
            <tr>
             <td valign="top">
              Product:
             </td>
             <td valign="top">
              <input type="text" name="product" maxlength="100" size="50" value="Test" readonly>
             </td>
            </tr> 
            <tr>
             <td valign="top">
              Prijs (per stuk):
             </td>
             <td valign="top">
              <input type="text" name="prijs" maxlength="100" size="50" value="Test" readonly>
             </td>
            </tr> 
            <tr>
             <td valign="top">
              Aantal:
             </td>
             <td valign="top">
              <select name="aantal"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option></select>
             </td>
            </tr> 
            <tr>
             <td valign="top">
              Opmerking(en):
             </td>
             <td valign="top">
              <textarea name="opmerkingen" maxlength="1000" cols="39" rows="6"></textarea>
             </td> 
            </tr>
            <tr>
             <td colspan="2" style="text-align:center">
              <input type="submit" value="Bestel">
             </td>
             <td colspan="2" style="text-align:center">
              <input type="reset" value="Annuleer">
             </td>
            </tr>
            </table>
            </form>
                <br />
                <b>De volgende fouten zijn opgetreden:</b><br /><br />
            [COLOR= #0000BB]<?php[/COLOR]
            [COLOR= #007700]}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
            [COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"From: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rnReply-To: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rnX-Mailer: PHP/"[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/phpversion"]phpversion[/URL][COLOR= #007700]();[/COLOR]
            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Voornaam: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]voornaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Achternaam: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]achternaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"E-mail: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Adres: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]adres[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Postcode: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]postcode[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Woonplaats: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]woonplaats[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Product: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]product[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Prijs (per stuk): "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]prijs[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Aantal: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Opmerking(en): "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opmerkingen[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]

            [URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$cmail[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"product"[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #DD0000]"-----Bestelling-----"[/COLOR] [COLOR= #007700],[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$headers[/COLOR][COLOR= #007700]);
                  }[/COLOR]
            ?>
            <form action="" method="POST">
            <table width="450px">
            </tr>
            <tr>
             <td valign="top">
              Voornaam:
             </td>
             <td valign="top">
              <input type="text" name="voornaam" maxlength="50" size="50">
             </td>
            </tr> 
            <tr>
             <td valign="top">
              Achternaam:
             </td>
             <td valign="top">
              <input type="text" name="achternaam" maxlength="50" size="50">
             </td>
            </tr>
            <tr>
             <td valign="top">
              Email:
             </td>
             <td valign="top">
              <input type="text" name="email" maxlength="100" size="50">
             </td>
            </tr> 
            <tr>
             <td valign="top">
              Adres:
             </td>
             <td valign="top">
              <input type="text" name="adres" maxlength="100" size="50">
             </td>
            </tr> 
            <tr>
             <td valign="top">
              Postcode:
             </td>
             <td valign="top">
              <input type="text" name="postcode" maxlength="6" size="50">
             </td>
            </tr> 
            <tr>
             <td valign="top">
              Woonplaats:
             </td>
             <td valign="top">
              <input type="text" name="woonplaats" maxlength="50" size="50">
             </td>
            </tr> 
            <tr>
             <td valign="top">
              Product:
             </td>
             <td valign="top">
              <input type="text" name="product" maxlength="100" size="50" value="Test" readonly>
             </td>
            </tr> 
            <tr>
             <td valign="top">
              Prijs (per stuk):
             </td>
             <td valign="top">
              <input type="text" name="prijs" maxlength="100" size="50" value="Test" readonly>
             </td>
            </tr> 
            <tr>
             <td valign="top">
              Aantal:
             </td>
             <td valign="top">
              <select name="aantal"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option></select>
             </td>
            </tr> 
            <tr>
             <td valign="top">
              Opmerking(en):
             </td>
             <td valign="top">
              <textarea name="opmerkingen" maxlength="1000" cols="39" rows="6"></textarea>
             </td> 
            </tr>
            <tr>
             <td colspan="2" style="text-align:center">
              <input type="submit" value="Bestel">
             </td>
             <td colspan="2" style="text-align:center">
              <input type="reset" value="Annuleer">
             </td>
            </tr>
            </table>
            </form>
            [COLOR= #0000BB]<?php[/COLOR]
            [COLOR= #007700]}[/COLOR]
            ?>
Als ik dit doe verstuurd hij de mail niet, hoe kan ik ook maken dat als je op bestel hebt geklikt er een melding van "Bedankt voor je bestelling etc" komt?
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik snap eigenlijk niet zo goed waarom je 2 formuliertjes in je code heb staan, en die else voor de mailfunctie klopt eigenlijk ook niet volgens mij.

Ik zal ff kijken of ik m een beetje kloppend kan maken (tenminste op mijn manier dan wink
edit:
Hier is Luuk zijn code (nav zijn bericht wink) maar dan met melding "bedankt voor je bestelling"
Spoiler tonen
[COLOR= #0000BB]<?php
    $cmail[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"helpdesk@filmings.co.cc"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Jouw email adres hier.[/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]"voornaam"[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"achternaam"[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"email"[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"adres"[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"postcode"[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"woonplaats"[/COLOR][COLOR= #007700]]))
    {[/COLOR]
        [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$fouten[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/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]"voornaam"[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
            [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen voornaam ingevoerd<br />"[/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]"achternaam"[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
            [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen achternaam ingevoerd<br />"[/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]"email"[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
            [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen email-adres ingevoerd<br />"[/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]"adres"[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
            [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen adres ingevoerd<br />"[/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]"postcode"[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
            [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen postcode ingevoerd<br />"[/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]"email"[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
            [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen woonplaats ingevoerd<br />"[/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]$fout[/COLOR][COLOR= #007700]) || ([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]) &&[/COLOR] [COLOR= #0000BB]$fout[/COLOR] [COLOR= #007700]>[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]))
    {[/COLOR]
?>
<br />
<b>De volgende fouten zijn opgetreden:</b><br /><br />
[COLOR= #0000BB]<?php[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$fouten[/COLOR][COLOR= #007700];
    }[/COLOR]
    [URL="http://www.php.net/else"]else[/URL]
    [COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"From: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rnReply-To: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rnX-Mailer: PHP/"[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/phpversion"]phpversion[/URL][COLOR= #007700]();[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Voornaam: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]voornaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Achternaam: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]achternaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"E-mail: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Adres: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]adres[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Postcode: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]postcode[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Woonplaats: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]woonplaats[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Product: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]product[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Prijs (per stuk): "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]prijs[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Aantal: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Opmerking(en): "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opmerkingen[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        
        [COLOR= #0000BB]$mail[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$cmail[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"-----Bestelling-----"[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"product"[/COLOR][COLOR= #007700]],.[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$headers[/COLOR][COLOR= #007700]);[/COLOR]
        
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$mail[/COLOR] [COLOR= #007700]==[/COLOR] TRUE[COLOR= #007700]) 
            {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Bedankt voor je bestelling![/COLOR][COLOR= #007700];
            }
    }[/COLOR]
?>
<form action="" method="POST">
    <table width="450px">
        <tr>
            <td valign="top">
                Voornaam:
            </td>
            <td valign="top">
                <input type="text" name="voornaam" maxlength="50" size="50">
            </td>
        </tr> 
        <tr>
            <td valign="top">
                Achternaam:
            </td>
            <td valign="top">
                <input type="text" name="achternaam" maxlength="50" size="50">
            </td>
        </tr>
        <tr>
            <td valign="top">
                Email:
            </td>
            <td valign="top">
                <input type="text" name="email" maxlength="100" size="50">
            </td>
        </tr> 
        <tr>
            <td valign="top">
                Adres:
            </td>
            <td valign="top">
                <input type="text" name="adres" maxlength="100" size="50">
            </td>
        </tr> 
        <tr>
            <td valign="top">
                Postcode:
            </td>
            <td valign="top">
                <input type="text" name="postcode" maxlength="6" size="50">
            </td>
        </tr> 
        <tr>
            <td valign="top">
                Woonplaats:
            </td>
            <td valign="top">
                <input type="text" name="woonplaats" maxlength="50" size="50">
            </td>
        </tr> 
        <tr>
            <td valign="top">
                Product:
            </td>
            <td valign="top">
                <input type="text" name="product" maxlength="100" size="50" value="Test" readonly>
            </td>
        </tr> 
        <tr>
            <td valign="top">
                Prijs (per stuk):
            </td>
            <td valign="top">
                <input type="text" name="prijs" maxlength="100" size="50" value="Test" readonly>
            </td>
        </tr> 
        <tr>
            <td valign="top">
                Aantal:
            </td>
            <td valign="top">
                <select name="aantal"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option></select>
            </td>
        </tr> 
        <tr>
            <td valign="top">
                Opmerking(en):
            </td>
            <td valign="top">
                <textarea name="opmerkingen" maxlength="1000" cols="39" rows="6"></textarea>
            </td> 
        </tr>
        <tr>
            <td colspan="2" style="text-align:center">
                <input type="submit" value="Bestel">
            </td>
            <td colspan="2" style="text-align:center">
                <input type="reset" value="Annuleer">
            </td>
        </tr>
    </table>
</form>
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Probeer mijn code eens dan... Maar 1 formulier en mijn editor geeft geen fouten aan
0
Ewan

Lid · Topicstarter

Berichten
8.302
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@Marjolein

Quote:
Parse error: syntax error, unexpected T_VARIABLE in /home/ewan/domains/filmings.co.cc/public_html/test/bestel1.php on line 2

@Luuk
Die heb ik geprobeerd alleen dan krijg ik ook een error confused
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
En wat is die error dan?
0
Ewan

Lid · Topicstarter

Berichten
8.302
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Luukvdo schreef:
En wat is die error dan?
Ohnee geen error maar de mail verstuurde niet confused Ook staat "De volgende fouten zijn opgetreden:" er altijd boven.
0
Ewan

Lid · Topicstarter

Berichten
8.302
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bump

toevoeging op 17 december 2011, 17:02:46:
Ik heb nu dit:
Spoiler tonen
[COLOR= #0000BB]<?php
    $cmail[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"helpdesk@filmings.co.cc"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Jouw email adres hier.[/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]"voornaam"[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"achternaam"[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"email"[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"adres"[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"postcode"[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"woonplaats"[/COLOR][COLOR= #007700]])) {
    {[/COLOR]
        [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$fouten[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/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]"voornaam"[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
            [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen voornaam ingevoerd<br />"[/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]"achternaam"[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
            [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen achternaam ingevoerd<br />"[/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]"email"[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
            [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen email-adres ingevoerd<br />"[/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]"adres"[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
            [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen adres ingevoerd<br />"[/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]"postcode"[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
            [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen postcode ingevoerd<br />"[/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]"email"[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
            [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen woonplaats ingevoerd<br />"[/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]$fout[/COLOR][COLOR= #007700]) || ([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]) &&[/COLOR] [COLOR= #0000BB]$fout[/COLOR] [COLOR= #007700]>[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]))
    {[/COLOR]
?>
<br />
<b>De volgende fouten zijn opgetreden:</b><br /><br />
[COLOR= #0000BB]<?php[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$fouten[/COLOR][COLOR= #007700];
    }[/COLOR]
    [URL="http://www.php.net/else"]else[/URL]
    [COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"From: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rnReply-To: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rnX-Mailer: PHP/"[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/phpversion"]phpversion[/URL][COLOR= #007700]();[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Voornaam: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]voornaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Achternaam: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]achternaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"E-mail: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Adres: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]adres[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Postcode: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]postcode[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Woonplaats: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]woonplaats[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Product: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]product[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Prijs (per stuk): "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]prijs[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Aantal: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Opmerking(en): "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]opmerkingen[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"rn"[/COLOR][COLOR= #007700];[/COLOR]
        
        [COLOR= #0000BB]$mail[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$cmail[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"-----Bestelling-----"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$headers[/COLOR][COLOR= #007700]);[/COLOR]
        
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$mail[/COLOR] [COLOR= #007700]==[/COLOR] TRUE[COLOR= #007700]) 
            {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Bedankt voor je bestelling![/COLOR][COLOR= #007700];
            }
    }[/COLOR]
?>
<form action="" method="POST">
    <table width="450px">
        <tr>
            <td valign="top">
                Voornaam:
            </td>
            <td valign="top">
                <input type="text" name="voornaam" maxlength="50" size="50">
            </td>
        </tr> 
        <tr>
            <td valign="top">
                Achternaam:
            </td>
            <td valign="top">
                <input type="text" name="achternaam" maxlength="50" size="50">
            </td>
        </tr>
        <tr>
            <td valign="top">
                Email:
            </td>
            <td valign="top">
                <input type="text" name="email" maxlength="100" size="50">
            </td>
        </tr> 
        <tr>
            <td valign="top">
                Adres:
            </td>
            <td valign="top">
                <input type="text" name="adres" maxlength="100" size="50">
            </td>
        </tr> 
        <tr>
            <td valign="top">
                Postcode:
            </td>
            <td valign="top">
                <input type="text" name="postcode" maxlength="6" size="50">
            </td>
        </tr> 
        <tr>
            <td valign="top">
                Woonplaats:
            </td>
            <td valign="top">
                <input type="text" name="woonplaats" maxlength="50" size="50">
            </td>
        </tr> 
        <tr>
            <td valign="top">
                Product:
            </td>
            <td valign="top">
                <input type="text" name="product" maxlength="100" size="50" value="Test" readonly>
            </td>
        </tr> 
        <tr>
            <td valign="top">
                Prijs (per stuk):
            </td>
            <td valign="top">
                <input type="text" name="prijs" maxlength="100" size="50" value="Test" readonly>
            </td>
        </tr> 
        <tr>
            <td valign="top">
                Aantal:
            </td>
            <td valign="top">
                <select name="aantal"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option></select>
            </td>
        </tr> 
        <tr>
            <td valign="top">
                Opmerking(en):
            </td>
            <td valign="top">
                <textarea name="opmerkingen" maxlength="1000" cols="39" rows="6"></textarea>
            </td> 
        </tr>
        <tr>
            <td colspan="2" style="text-align:center">
                <input type="submit" value="Bestel">
            </td>
            <td colspan="2" style="text-align:center">
                <input type="reset" value="Annuleer">
            </td>
        </tr>
    </table>
</form> 
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
Alleen hij weergeeft helemaal niks, pagina
0
Ewan

Lid · Topicstarter

Berichten
8.302
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bump
0
Ewan

Lid · Topicstarter

Berichten
8.302
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Waarom is mijn post verwijderd?
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Omdat:
"Let op: De laatste post in dit topic was ook van jou. Je kunt waarschuwingsprocenten krijgen voor dubbelposts. Er is één dubbelpost per topic toegestaan, mits er minimaal 24 uur tussen die twee posts zit."
0
Ewan

Lid · Topicstarter

Berichten
8.302
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Lennard schreef:
Omdat:
"Let op: De laatste post in dit topic was ook van jou. Je kunt waarschuwingsprocenten krijgen voor dubbelposts. Er is één dubbelpost per topic toegestaan, mits er minimaal 24 uur tussen die twee posts zit."
Maar dan was er alsnog een post toegestaan die ook is verwijderd.
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Misschien zodat je dan opnieuw kon bumpen ofzo, ik weet het niet, ik heb ze niet verwijderd.

edit; omdat je op pagina 1 je bump al verbruikt had
0
Ewan

Lid · Topicstarter

Berichten
8.302
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Lennard schreef:
Misschien zodat je dan opnieuw kon bumpen ofzo, ik weet het niet, ik heb ze niet verwijderd.

edit; omdat je op pagina 1 je bump al verbruikt had
Ik dacht dat je elke keer op nieuw mocht bumpen dus niet 1x per topic, maargoed zou je de inhoud van die post anders even bij de andere kunnen voegen of naar mij pmen
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