Contact formulier PHP ??

Gestart doorReins15 reacties23 weergaven

16 berichten · pagina 1 van 2

Reins

Lid · Topicstarter

Berichten
14.363
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hi,
ik heb iets nodig als http://nieuwecvketel.nl/
nu heb ik dit (zie onderstaande code)
Alleen hoe maak ik daar meer van?
Vergoeding krijg je wel wink
[COLOR= #0000BB]<?[/COLOR]

    

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]]){[/COLOR]



[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]get[/COLOR][COLOR= #007700]]++;[/COLOR]



[COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"EMAIL@UW-WEBSITE.NL"[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$naam[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]]),[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]100[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$onderwerp[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]subject[/COLOR][COLOR= #007700]]),[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]40[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]message[/COLOR][COLOR= #007700]]);[/COLOR]

[COLOR= #0000BB]$reply[/COLOR] [COLOR= #007700]=[/COLOR] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]reply[/COLOR][COLOR= #007700]]);[/COLOR]



   [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$naam[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$onderwerp[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$reply[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]get[/COLOR][COLOR= #007700]] <[/COLOR] [COLOR= #0000BB]3[/COLOR][COLOR= #007700]){[/COLOR] [COLOR= #FF8000]// 2 berichten mogen na elkaar verzonden worden, daarom het getal 3[/COLOR]

   [URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"UW-WEBSITE.NL"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"Er werd een bericht verstuurd via het contactformulier.

Van: $naam
E-mailadres: $reply
Onderwerp: $onderwerp
Bericht: $bericht
IP: {$_SERVER[REMOTE_ADDR]}"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"From: Uploadnow
Reply-to: $reply"[/COLOR][COLOR= #007700]);[/COLOR]

   [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Bericht verstuurd.<br><br>"[/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]"Vul wel alle velden in.<br><br>"[/COLOR][COLOR= #007700];

   }



}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]

[URL="http://www.php.net/unset"]unset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]get[/COLOR][COLOR= #007700]]);

}[/COLOR]



?>





</h1>

<form action="" method="get">





            <table>

                <tr>

                <td>* Naam:</td> <td><input type="text" name="name" class="formfield"></td>

            </tr>

            <tr>

                <td>* Email:</td> <td><input type="text" name="reply" class="formfield"></td>

                 </tr>

                <tr>

                <td>* Onderwerp:</td> <td><input type="text" name="subject" class="formfield"></td>

                </tr>

                <tr>

                <td VALIGN=top>* Bericht:</td> <td><textarea name="message" cols="45" rows="10" class="formtextfield"></textarea></td>

                </tr>

  </table><h1><br /><br /></h1>

                <input name="submit" type="submit" value=" Verzenden" class="verstuurknop" />



</form>
0
Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]]){[/COLOR]
[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]get[/COLOR][COLOR= #007700]]++;[/COLOR]

[COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"EMAIL@UW-WEBSITE.NL"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$naam[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]]),[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]100[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$adres[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]adres[/COLOR][COLOR= #007700]]),[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]100[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$postcode[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]postcode[/COLOR][COLOR= #007700]]),[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]100[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$plaats[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]plaats[/COLOR][COLOR= #007700]]),[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]100[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$telefoon[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]telnummer[/COLOR][COLOR= #007700]]),[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]100[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$onderwerp[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]subject[/COLOR][COLOR= #007700]]),[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]40[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]message[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$reply[/COLOR] [COLOR= #007700]=[/COLOR] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]reply[/COLOR][COLOR= #007700]]);[/COLOR]

   [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$naam[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$adres[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$postcode[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$plaats $telfoon[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$onderwerp[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$reply[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]get[/COLOR][COLOR= #007700]] <[/COLOR] [COLOR= #0000BB]3[/COLOR][COLOR= #007700]){[/COLOR] 

   [URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"UW-WEBSITE.NL"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"Er werd een bericht verstuurd via het contactformulier.nnVan: $naamnE-mailadres: $replynOnderwerp: $onderwerpnBericht: $berichtnIP: {$_SERVER[REMOTE_ADDR]}"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"From: UploadnowrnReply-to: $reply"[/COLOR][COLOR= #007700]);[/COLOR]

   [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Bericht verstuurd.<br><br>"[/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]"Vul wel alle velden in.<br><br>"[/COLOR][COLOR= #007700];

   }

  }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]

  [URL="http://www.php.net/unset"]unset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]get[/COLOR][COLOR= #007700]]);

  }[/COLOR]

?>

<form action="" method="get">

            <table>

                <tr>

                <td>* Naam:</td> <td><input type="text" name="name" class="formfield"></td>

            </tr>
                 <tr>

                <td>* Adres:</td> <td><input type="text" name="adres" class="formfield"></td>

            </tr>
                 <tr>

                <td>* Postcode:</td> <td><input type="text" name="postcode" class="formfield"></td>

            </tr>
            <tr>

                <td>* Woonplaats:</td> <td><input type="text" name="plaats" class="formfield"></td>

            </tr>
            <tr>

                <td>* Email:</td> <td><input type="text" name="reply" class="formfield"></td>

                 </tr>
                  <tr>

                <td>* Telefoonnummer:</td> <td><input type="text" name="telnummer" class="formfield"></td>

            </tr>

                <tr>

                <td>* Onderwerp:</td> <td><input type="text" name="subject" class="formfield"></td>

                </tr>

                <tr>

                <td VALIGN=top>* Bericht:</td> <td><textarea name="message" cols="45" rows="10" class="formtextfield"></textarea></td>

                </tr>

  </table><h1><br /><br /></h1>

                <input name="submit" type="submit" value=" Verzenden" class="verstuurknop" />



</form>
0
Reins

Lid · Topicstarter

Berichten
14.363
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Propje schreef:
if($naam && $adres && $postcode && $plaats $telfoon && $bericht && $onderwerp && $reply && $_SESSION[get] < 3){
} else {


Deze werden aangegeven als syntaxfouten...
Ik heb het er maar uitgehaald maar werkt nu niet helemaal, maar zo ist ook goed.
Dankjewel thumbsup
0
Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ok

is het dan nu goed?
0
Reins

Lid · Topicstarter

Berichten
14.363
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Yup het is goed, wil je er iets voor??
0
Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Puntjes zijn altijd welkom wink
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Propje schreef:
Puntjes zijn altijd welkom wink
Om mij die 0,6 te betalenfrown
0
Reins

Lid · Topicstarter

Berichten
14.363
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jesse, welke 0.6?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Hij had 0,3 van me geleend en die zou ik de volgende dag (bijna week geleden) terug krijgen (Ik zou dan 0,6 krijgen)

Nog steeds niet gehad.
Toen ik hem aansprak op msn ging hij maar snel offline (blok(?))
0
Reins

Lid · Topicstarter

Berichten
14.363
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wth lul jij allemaal?
Shit man, ik ben Reinier hoor, haal je me door de war met iemand anders ofzo?
Spreek me aan op msn.
0
Berichten
545
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Als je beter leest, zie je dat hij Propje ermee bedoelt.
0
Reins

Lid · Topicstarter

Berichten
14.363
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Sorry bloos
0
Berichten
1.803
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
yummie hahahaha reinier beter lezen yummie xd
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Reinier emoIk quote het bericht van propje toch? emo
0
Reins

Lid · Topicstarter

Berichten
14.363
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja sorry bloos
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