[PHP] Probleem met contactscriptje

Gestart doorJosnl8 reacties17 weergaven

9 berichten · pagina 1 van 1

Josnl

Lid · Topicstarter

Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
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:

[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!

Josthumbsup
0
Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[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.nn Als opmerking had hij: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"opmerking"[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"nnZijn email adres is: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"email"[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]".nn 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]
?>


nu werkt ie

je had perongeluk een spatie yummie
0
Josnl

Lid · Topicstarter

Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ow okee, dankje! biggrin
EDIT: Hij werkt!

Kan een slotje op! wink
0
Berichten
5.957
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Waarvoor is de $copyright ?
En ze doen hier niet aan slotjes.
0
Josnl

Lid · Topicstarter

Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Als: $copyrigt = false; dan staat de copyright van de website uit, als ie op = true; staat, dan staat de copyright van de site aan! wink
0
Berichten
10.409
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Josnl schreef:
Als: $copyrigt = false; dan staat de copyright van de website uit, als ie op = true; staat, dan staat de copyright van de site aan! wink
maarja an die copyright heb je toch niets aanyummiehet is niet eens van jou xd
0
Josnl

Lid · Topicstarter

Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Weet ik, daarom staat ie op false...
0
Berichten
5.957
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Doe hem dan gewoon weg?
0
Josnl

Lid · Topicstarter

Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wat maak je nou weer een probleem om NIKS...:shutup
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