[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net • Toon onderwerp - probleem met php
Pagina 1 van 1

probleem met php

BerichtGeplaatst: 28 mei 2006 13:26
door Linda
Hallo allemaal ik heb een bestelformulier gemaakt en wil een php script gebruiken voor het versturen. ik heb bij navraag begrepen dat dit beter/ makkelijker is dan via cgi.
Nu heb ik na veel veel ploeteren het bestelformulier en php-script klaar maar na invullen van het formulier krijg ik een deel van het php script in beeld??? Wie kan mij helpen AUB?

Het formulier vind je op: [url]http://www.ubunukado.nl[/url]

ik heb het volgende php script gebruikt:

<?php
$voornaam klant = htmlspecialchars($_POST['voornaam klant']);
$achternaam klant = htmlspecialchars($_POST['achternaam klant']);
$adres klant = htmlspecialchars($_POST['adres klant']);
$postcode klant = htmlspecialchars($_POST['postcode klant']);
$woonplaats klant = htmlspecialchars($_POST['woonplaats klant']);
$Email klant = htmlspecialchars($_POST['Email klant']);
$voornaam ontvanger = htmlspecialchars($_POST['voornaam ontvanger']);
$achternaam ontvanger = htmlspecialchars($_POST['achternaam ontvanger']);
$adres ontvanger = htmlspecialchars($_POST['adres ontvanger']);
$postcode ontvanger = htmlspecialchars($_POST['postcode ontvanger']);
$woonplaats ontvanger = htmlspecialchars($_POST['woonplaats ontvanger']);


if (!$voornaam klant) {
echo "U bent een veld vergeten in te vullen!";
exit; }

if (!$achternaam klant) {
echo "U bent een veld vergeten in te vullen!";
exit; }

if (!$adres klant) {
echo "U bent een veld vergeten in te vullen!";
exit; }

if (!$postcode klant) {
echo "U bent een veld vergeten in te vullen!";
exit; }

if (!$woonplaats klant) {
echo "U bent een veld vergeten in te vullen!";
exit; }

if (!$Email klant) {
echo "U bent een veld vergeten in te vullen!";
exit; }

if (!$voornaam ontvanger) {
echo "U bent een veld vergeten in te vullen!";
exit; }

if (!$achternaam ontvanger) {
echo "U bent een veld vergeten in te vullen!";
exit; }

if (!$adres ontvanger) {
echo "U bent een veld vergeten in te vullen!";
exit; }

if (!$postcode ontvanger) {
echo "U bent een veld vergeten in te vullen!";
exit; }

if (!$woonplaats ontvanger) {
echo "U bent een veld vergeten in te vullen!";
exit; }



else {

$tijd = time();
$datum = strftime("%d/%m/%y %H:%M", $tijd);
$ip = getenv("REMOTE_ADDR");
$message = "" . $achternaam klant . " met het e-mailadres " . $Email klant . " en het IP $ip stuurde op $datum het volgende bericht:
____________________________________
" . $boodschap . "
------------------------------------";

$mailadres = "ubuntu@pl-trade.nl";
$message = str_replace ("<br>","\n", $message);
mail("$mailadres", "Ubuntu bestelling",
$message, "From: " . $Email klant . "");

echo "Bedankt voor uw bestelling. Wij zullen uw order zo spoedig mogelijk verwerken.";
}
?>


Voor de volledig heis nog ff het formulier in HTML:

<h2>Bestelformulier</h2>
<FORM method="post" action="/cgi-bin/formmail.pl">
<table border=0>
<tr><TD width=100 align="center">
<FONT face="Verdana" size=2><h4>Uw adres<h4>
<tr><TD width=200 align="right">
<FONT face="Verdana" size=2>Voornaam:</TD><TD><INPUT TYPE=TEXT SIZE=35
NAME="voornaam klant"></TD>
</TR><tr><TD width=200 align="right">
<FONT face="Verdana" size=2>Achternaam:</TD><TD><INPUT TYPE=TEXT SIZE=35
NAME="achternaam klant"></TD>
</TR><tr><TD width=200 align="right">
<FONT face="Verdana" size=2>Adres:</TD><TD><INPUT TYPE=TEXT SIZE=35
NAME="adres klant"></TD>
</TR><tr><TD width=200 align="right">
<FONT face="Verdana" size=2>Postcode:</TD><TD><INPUT TYPE=TEXT SIZE=6
NAME="postcode klant"></TD>
</TR><tr><TD width=200 align="right">
<FONT face="Verdana" size=2>Woonplaats:</TD><TD><INPUT TYPE=TEXT SIZE=35
NAME="woonplaats klant"></TD>
</TR><tr><TD width=200 align="right">
<FONT face="Verdana" size=2>Telefoon:</TD><TD><INPUT TYPE=TEXT SIZE=10
NAME="telefoon"></TD>
</TR><tr><TD width=200 align="right">
<FONT face="Verdana" size=2>E-mailadres:</TD><TD><INPUT TYPE=TEXT SIZE=35
NAME="Email klant"></TD><br>
</TR>
<TD vAlign=top width="390" height="25">
<P>&nbsp;</P></TD>
<TD vAlign=top width="4" height="25">&nbsp;</TD>
</tr>

<tr><TD width=100 align="center">
<FONT face="Verdana" size=2><h4>Bezorgadres<h4>
<tr><TD width=200 align="right">
<FONT face="Verdana" size=2>Voornaam:</TD><TD><INPUT TYPE=TEXT SIZE=35
NAME="voornaam ontvanger"></TD>
</TR><tr><TD width=200 align="right">
<FONT face="Verdana" size=2>Achternaam:</TD><TD><INPUT TYPE=TEXT SIZE=35
NAME="achternaam ontvanger"></TD>
</TR><tr><TD width=200 align="right">
<FONT face="Verdana" size=2>Adres:</TD><TD><INPUT TYPE=TEXT SIZE=35
NAME="adres ontvanger"></TD>
</TR><tr><TD width=200 align="right">
<FONT face="Verdana" size=2>Postcode:</TD><TD><INPUT TYPE=TEXT SIZE=6
NAME="postcode ontvanger"></TD>
</TR><tr><TD width=200 align="right">
<FONT face="Verdana" size=2>Woonplaats:</TD><TD><INPUT TYPE=TEXT SIZE=35
NAME="woonplaats ontvanger"></TD>
</TR>
<TR valign="top" align="center">
<TD width=200 align="right"><FONT face="Verdana" size=2>Kaart:</TD><TD><FONT face="Verdana" size=2><select name="kaart">
<option value selected> Kies een kaart
<option> Geen kaart
<option> Kaart 1 - belangrijk
<option> Kaart 2 - een ander mens
<option> Kaart 3 - 100% attitude
<option> Kaart 4 - Zuid-Afrikaans

</TD>
</TR><TR valign="top">
<TD width=500 align="right"><FONT face="Verdana" size=2>Bezorging:</TD><TD><input type="checkbox" NAME=Bezorging VALUE=Zo spoedig mogelijk><FONT face="Verdana" size=2>Zo spoedig mogelijk<br>
<input type="checkbox"NAME=Datum VALUE=Datum<FONT face="Verdana" size=2>Datum

<select name = dag>
<option>dag
<option>1
<option>2
<option>3
<option>4
<option>5
<option>6
<option>7
<option>8
<option>9
<option>10
<option>11
<option>12
<option>13
<option>14
<option>15
<option>16
<option>17
<option>18
<option>19
<option>20
<option>21
<option>22
<option>23
<option>24
<option>25
<option>26
<option>27
<option>28
<option>29
<option>30
<option>31
</select>
<select name=maand>
<option>maand
<option>1
<option>2
<option>3
<option>4
<option>5
<option>6
<option>7
<option>8
<option>9
<option>10
<option>11
<option>12
</select>
<select name=jaar>
<option>jaar
<option>2006
<option>2007
</select>

</TD>
</TR>

<TR valign="top">
<TD width=200 align="right"><FONT face="Verdana" size=2>Uw persoonlijke boodschap:
</TD><TD><TEXTAREA ROWS=6 COLS=29 WRAP="hard" NAME="boodschap"></TEXTAREA></TD>
</TR>
</table>
<p><center>


<INPUT TYPE=SUBMIT NAME=submit VALUE="Versturen">
<INPUT TYPE=RESET NAME=reset VALUE="Opnieuw">
</FORM></TD></TR></TABLE>


Groetjes,

Linda

Re: probleem met php

BerichtGeplaatst: 28 mei 2006 16:00
door Anthony

Re: probleem met php

BerichtGeplaatst: 28 mei 2006 17:36
door Linda

Re: probleem met php

BerichtGeplaatst: 28 mei 2006 18:12
door KillerSponge
[code="php"]$message = "" . $achternaam klant . " met het e-mailadres " . $Email klant . " en het IP $ip stuurde op $datum het volgende bericht:[/code]

Moet zijn

[code="php"]$message = $achternaam klant . " met het e-mailadres " . $Email klant . " en het IP $ip stuurde op $datum het volgende bericht:[/code]

Smile

Re: probleem met php

BerichtGeplaatst: 28 mei 2006 19:10
door Linda
Beste Killersponge,
Ik heb het veranderd maar nog steeds geen verandering.
Ik ontvang trouwens ook geen mail...

Re: probleem met php

BerichtGeplaatst: 28 mei 2006 19:52
door Remi

Re: probleem met php

BerichtGeplaatst: 30 mei 2006 07:51
door Derk

Re: probleem met php

BerichtGeplaatst: 30 mei 2006 09:23
door KillerSponge