he, op wmcity vind ik dit script ;
Maaruh ik heb een error op men site
Quote:
Notice: Undefined index: naam in /blabla/index.php on line 137
Notice: Undefined index: opmerking in /blabla/index.php on line 137
Notice: Undefined index: email in /blabla/index.php on line 137
Notice: Use of undefined constant verzenden - assumed verzenden in /blabla/index.php on line 138
Bedankt als je me helpt!
[COLOR= #0000BB]<?
$emailadres[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"micra@home.nl"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// wijzig dit indien niet uw email adres [/COLOR]
[COLOR= #0000BB]$copyrigt[/COLOR] [COLOR= #007700]=[/COLOR] false[COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Wijzig dit indien u een copyrigt wilt hebben [/COLOR]
?>
<form method="POST" action="[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$PHP_SELF[/COLOR][COLOR= #007700];[/COLOR] ?>">
<table border="1" width="47%" cellspacing="0" cellpadding="0">
<tr>
<td width="28%">Naam</td>
<td width="72%"><input type="text" name="naam" size="36"></td>
</tr>
<tr>
<td width="28%">E-mail adres</td>
<td width="72%"><input type="text" name="email" size="36"></td>
</tr>
<tr>
<td width="28%">Onderwerp</td>
<td width="72%"><input type="text" name="onderwerp" size="36"></td>
</tr>
<tr>
<td width="28%" valign="top">Opmerking</td>
<td width="72%" height="77" ><textarea rows="4" name="opmerking" cols="30"></textarea></td>
</tr>
<tr>
<td width="100%" colspan="2">
<p align="center"><input type="submit" value="Verzenden" name="verzenden"><input type="reset" value="Opnieuw" name="reset"></td>
</tr>
</table>
</form>
[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$copyrigt[/COLOR] [COLOR= #007700]==[/COLOR] true[COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"©2003 <a href="mailto:micra@home.nl">Micra</a>"[/COLOR][COLOR= #007700];
}[/COLOR]
[COLOR= #0000BB]$message[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"naam"[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]" heeft een mailtje gestuurt via uw site.
Als opmerking had hij: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]" opmerking"[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"
Zijn email adres is: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"email"[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]".
Met vriendelijke groeten Micra"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//bewerk dit naar je eigen message [/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]verzenden[COLOR= #007700]])){[/COLOR]
[URL="http://www.php.net/if"]if[/URL][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]"email"[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]""[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"onderwerp"[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]""[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"opmerking"[/COLOR][COLOR= #007700]])
{[/COLOR]
[URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$emailadres[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"onderwerp"[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]$message[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"Mail is verstuurd en er zal zo snel mogenlijk gereageerd worden."[/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]"U heeft iets niet correct ingevult."[/COLOR][COLOR= #007700];
}
}[/COLOR]
?> Maaruh ik heb een error op men site
Quote:
Notice: Undefined index: naam in /blabla/index.php on line 137
Notice: Undefined index: opmerking in /blabla/index.php on line 137
Notice: Undefined index: email in /blabla/index.php on line 137
Notice: Use of undefined constant verzenden - assumed verzenden in /blabla/index.php on line 138
Bedankt als je me helpt!




