Heey,
Ik heb een contactscript gedownload, en een beetje aangepast.
De mail, met daarin de gestuurde gegevens krijg ik allemaal binnen, op één na.
Het gaat om de tekst die staat in het opmerkingen-vak, die krijg ik niet binnen.
Hier is het script:
Alvast bedankt voor jullie hulp!
Jos
Ik heb een contactscript gedownload, en een beetje aangepast.
De mail, met daarin de gestuurde gegevens krijg ik allemaal binnen, op één na.
Het gaat om de tekst die staat in het opmerkingen-vak, die krijg ik niet binnen.
Hier is het script:
[COLOR= #0000BB]<?
$emailadres[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"info@zoozio.nl"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$copyrigt[/COLOR] [COLOR= #007700]=[/COLOR] false[COLOR= #007700];[/COLOR]
?>
<form method="POST" action="[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$PHP_SELF[/COLOR][COLOR= #007700];[/COLOR] ?>">
<center>
<table border="0" 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 (Zo duidelijk mogelijk)</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>
</center>
</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]"©2010-2011 | Zoozio Webhosting</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 Zoozio Webhosting"[/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 binnen 12 uur een reactie zijn op uw vraag, suggestie of opmerking! <br />Met vriendelijke groeten,<br /><br />Zoozio Webhosting"[/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]
?> Alvast bedankt voor jullie hulp!
Jos




