Maxlengte weghalen -> fixed: vraag 2!

Gestart doorRemcoboy34 reacties40 weergaven

35 berichten · pagina 1 van 3

Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Remcoboy schreef:
Hallo,
Kan iemand hier de maxlengte weghalen ??

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]header.php[/COLOR][COLOR= #007700]);[/COLOR] ?>
<h2>Contacteer [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] SITENAME[COLOR= #007700];[/COLOR] ?></h2>
[COLOR= #0000BB]<?[/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][COLOR= #DD0000]name[/COLOR][COLOR= #007700]])) {[/COLOR]
    [COLOR= #0000BB]$username[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]];[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR] [URL="http://www.php.net/strtolower"]strtolower[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]])!=[/COLOR] [URL="http://www.php.net/strtolower"]strtolower[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]texto[/COLOR][COLOR= #007700]])){[/COLOR] 
        [COLOR= #0000BB]$display_error[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"* Security Code Error"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// error language[/COLOR]
        [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]error.php[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]();
    }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$name[/COLOR][COLOR= #007700]=[/COLOR]limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"name"[/COLOR][COLOR= #007700]]);[/COLOR]
        [COLOR= #0000BB]$email[/COLOR][COLOR= #007700]=[/COLOR]limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"email"[/COLOR][COLOR= #007700]]);[/COLOR]
        [COLOR= #0000BB]$topic[/COLOR][COLOR= #007700]=[/COLOR]limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"topic"[/COLOR][COLOR= #007700]]);[/COLOR]
        [COLOR= #0000BB]$subject[/COLOR][COLOR= #007700]=[/COLOR]limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"subject"[/COLOR][COLOR= #007700]]);[/COLOR]
        [COLOR= #0000BB]$comments[/COLOR][COLOR= #007700]=[/COLOR]limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"comments"[/COLOR][COLOR= #007700]]);[/COLOR]

        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$name[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$topic[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$subject[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$comments[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]){[/COLOR]
            [COLOR= #0000BB]$display_error[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"* All fields are required"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// error language[/COLOR]
            [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]error.php[/COLOR][COLOR= #007700]);[/COLOR]
            [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]();
        }[/COLOR]

        [COLOR= #0000BB]$laip[/COLOR] [COLOR= #007700]=[/COLOR] getRealIP[COLOR= #007700]();[/COLOR]
        [COLOR= #0000BB]$myDb[/COLOR][COLOR= #007700]->[/COLOR]connect[COLOR= #007700]();[/COLOR]
            [COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"INSERT INTO yob_contact (name, email, topic, subject, comments, ip) VALUES($name,$email,$topic,$subject,$comments,$laip)"[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
        [COLOR= #0000BB]$myDb[/COLOR][COLOR= #007700]->[/COLOR]close[COLOR= #007700]();[/COLOR]

        [COLOR= #0000BB]$display_error[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"* Your Message has been sent correctly."[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// error language[/COLOR]
        [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]error.php[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]();
    }
}


<[/COLOR]p[COLOR= #007700]>[/COLOR]Gebruik het onderstaande formulier om [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] SITENAME[COLOR= #007700];[/COLOR] ?> te contacteren.</p>

<form action="contactus.php" method="post" class="f-wrap-1">
    <div class="req">Alle velden verplicht</div>
    <fieldset>
    <h3>Contact Formulier</h3>

    <label><b>Uw naam:</b>
    <input type="text" name="name" autocomplete="off" class="f-name" value="" tabindex="1" /><br />
    </label>
    <label><b>Uw E-Mail:</b>
    <input type="text" name="email" autocomplete="off" class="f-name" value="" tabindex="2" /><br />
    </label>
    <label><b>Onderwerp:</b>
    <input type="text" name="topic" autocomplete="off" class="f-name" value="" tabindex="3" /><br />
    </label>
    <label><b>Vraag:</b>
    <input type="text" name="subject" autocomplete="off" class="f-name" value="" tabindex="4" /><br />
    </label>
    <label><b>Commentaar:</b>
    <textarea name="comments" rows="7" class="f-comments" onkeyup="return ismaxlength(this)" tabindex="5"></textarea><br />
    </label>
    <label><b>Beveiligingscode:</b>
    <input type=text name=code autocomplete="off" class="f-name" value="" tabindex="6" /><br />
    </label>
    <label for="code2"><b>&nbsp;</b>
    <img src="image.php?[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$res[/COLOR][COLOR= #007700];[/COLOR] ?>" /><br />
    </label>
    <div class="f-submit-wrap">
        <input type="submit" value="Verstuur" class="f-submit" tabindex="18" /><br />
    </div>
</fieldset>
</form>


[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]footer.php[/COLOR][COLOR= #007700]);[/COLOR] ?>


doe nu eens
0
Remcoboy

Lid · Topicstarter

Berichten
4.749
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
parse error: syntax error, unexpected < in /home/verdien/domains/verdienzelf.nl/public_html/contactus.php on line 37

Hij pakt
0
Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]header.php[/COLOR][COLOR= #007700]);[/COLOR] ?>
echo"<h2>Contacteer [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] SITENAME[COLOR= #007700];[/COLOR] ?></h2>";
[COLOR= #0000BB]<?php[/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][COLOR= #DD0000]name[/COLOR][COLOR= #007700]])) {[/COLOR]
    [COLOR= #0000BB]$username[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]];[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR] [URL="http://www.php.net/strtolower"]strtolower[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]])!=[/COLOR] [URL="http://www.php.net/strtolower"]strtolower[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]texto[/COLOR][COLOR= #007700]])){[/COLOR] 
        [COLOR= #0000BB]$display_error[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"* Security Code Error"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// error language[/COLOR]
        [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]error.php[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]();
    }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$name[/COLOR][COLOR= #007700]=[/COLOR]limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"name"[/COLOR][COLOR= #007700]]);[/COLOR]
        [COLOR= #0000BB]$email[/COLOR][COLOR= #007700]=[/COLOR]limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"email"[/COLOR][COLOR= #007700]]);[/COLOR]
        [COLOR= #0000BB]$topic[/COLOR][COLOR= #007700]=[/COLOR]limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"topic"[/COLOR][COLOR= #007700]]);[/COLOR]
        [COLOR= #0000BB]$subject[/COLOR][COLOR= #007700]=[/COLOR]limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"subject"[/COLOR][COLOR= #007700]]);[/COLOR]
        [COLOR= #0000BB]$comments[/COLOR][COLOR= #007700]=[/COLOR]limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"comments"[/COLOR][COLOR= #007700]]);[/COLOR]

        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$name[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$topic[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$subject[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$comments[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]){[/COLOR]
            [COLOR= #0000BB]$display_error[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"* All fields are required"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// error language[/COLOR]
            [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]error.php[/COLOR][COLOR= #007700]);[/COLOR]
            [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]();
        }[/COLOR]

        [COLOR= #0000BB]$laip[/COLOR] [COLOR= #007700]=[/COLOR] getRealIP[COLOR= #007700]();[/COLOR]
        [COLOR= #0000BB]$myDb[/COLOR][COLOR= #007700]->[/COLOR]connect[COLOR= #007700]();[/COLOR]
            [COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"INSERT INTO yob_contact (name, email, topic, subject, comments, ip) VALUES($name,$email,$topic,$subject,$comments,$laip)"[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
        [COLOR= #0000BB]$myDb[/COLOR][COLOR= #007700]->[/COLOR]close[COLOR= #007700]();[/COLOR]

        [COLOR= #0000BB]$display_error[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"* Your Message has been sent correctly."[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// error language[/COLOR]
        [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]error.php[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]();
    }
}[/COLOR]


[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"<p>Gebruik het onderstaande formulier om <?php echo SITENAME; ?> te contacteren.</p>"[/COLOR][COLOR= #007700];

<[/COLOR]form action[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"contactus.php"[/COLOR] method[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"post"[/COLOR] [URL="http://www.php.net/class"]class[/URL][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"f-wrap-1"[/COLOR][COLOR= #007700]>
    <[/COLOR]div [URL="http://www.php.net/class"]class[/URL][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"req"[/COLOR][COLOR= #007700]>[/COLOR]Alle velden verplicht[COLOR= #007700]<[/COLOR]/div[COLOR= #007700]>
    <[/COLOR]fieldset[COLOR= #007700]>
    <[/COLOR]h3[COLOR= #007700]>[/COLOR]Contact Formulier[COLOR= #007700]<[/COLOR]/h3[COLOR= #007700]>

    <[/COLOR]label[COLOR= #007700]><[/COLOR]b[COLOR= #007700]>[/COLOR]Uw naam[COLOR= #007700]:<[/COLOR]/b[COLOR= #007700]>
    <[/COLOR]input type[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"text"[/COLOR] name[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"name"[/COLOR] autocomplete[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"off"[/COLOR] [URL="http://www.php.net/class"]class[/URL][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"f-name"[/COLOR] value[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR] tabindex[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"1"[/COLOR] /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>
    <[/COLOR]/label[COLOR= #007700]>
    <[/COLOR]label[COLOR= #007700]><[/COLOR]b[COLOR= #007700]>[/COLOR]Uw E[COLOR= #007700]-[/COLOR][URL="http://www.php.net/Mail"]Mail[/URL][COLOR= #007700]:<[/COLOR]/b[COLOR= #007700]>
    <[/COLOR]input type[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"text"[/COLOR] name[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"email"[/COLOR] autocomplete[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"off"[/COLOR] [URL="http://www.php.net/class"]class[/URL][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"f-name"[/COLOR] value[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR] tabindex[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"2"[/COLOR] /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>
    <[/COLOR]/label[COLOR= #007700]>
    <[/COLOR]label[COLOR= #007700]><[/COLOR]b[COLOR= #007700]>[/COLOR]Onderwerp[COLOR= #007700]:<[/COLOR]/b[COLOR= #007700]>
    <[/COLOR]input type[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"text"[/COLOR] name[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"topic"[/COLOR] autocomplete[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"off"[/COLOR] [URL="http://www.php.net/class"]class[/URL][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"f-name"[/COLOR] value[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR] tabindex[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"3"[/COLOR] /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>
    <[/COLOR]/label[COLOR= #007700]>
    <[/COLOR]label[COLOR= #007700]><[/COLOR]b[COLOR= #007700]>[/COLOR]Vraag[COLOR= #007700]:<[/COLOR]/b[COLOR= #007700]>
    <[/COLOR]input type[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"text"[/COLOR] name[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"subject"[/COLOR] autocomplete[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"off"[/COLOR] [URL="http://www.php.net/class"]class[/URL][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"f-name"[/COLOR] value[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR] tabindex[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"4"[/COLOR] /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>
    <[/COLOR]/label[COLOR= #007700]>
    <[/COLOR]label[COLOR= #007700]><[/COLOR]b[COLOR= #007700]>[/COLOR]Commentaar[COLOR= #007700]:<[/COLOR]/b[COLOR= #007700]>
    <[/COLOR]textarea name[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"comments"[/COLOR] rows[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"7"[/COLOR] [URL="http://www.php.net/class"]class[/URL][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"f-comments"[/COLOR] value[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR] tabindex[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"5"[/COLOR][COLOR= #007700]><[/COLOR]/textarea[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>
    <[/COLOR]/label[COLOR= #007700]>
    <[/COLOR]label[COLOR= #007700]><[/COLOR]b[COLOR= #007700]>[/COLOR]Beveiligingscode[COLOR= #007700]:<[/COLOR]/b[COLOR= #007700]>
    <[/COLOR]input type[COLOR= #007700]=[/COLOR][COLOR= #DD0000]text[/COLOR] name[COLOR= #007700]=[/COLOR][COLOR= #DD0000]code[/COLOR] autocomplete[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"off"[/COLOR] [URL="http://www.php.net/class"]class[/URL][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"f-name"[/COLOR] value[COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR] tabindex[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"6"[/COLOR] /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>
    <[/COLOR]/label[COLOR= #007700]>
    <[/COLOR]label [URL="http://www.php.net/for"]for[/URL][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"code2"[/COLOR][COLOR= #007700]><[/COLOR]b[COLOR= #007700]>&[/COLOR]nbsp[COLOR= #007700];<[/COLOR]/b[COLOR= #007700]>
    <[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"image.php?<?php echo $res; ?>"[/COLOR] /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>
    <[/COLOR]/label[COLOR= #007700]>
    <[/COLOR]div [URL="http://www.php.net/class"]class[/URL][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"f-submit-wrap"[/COLOR][COLOR= #007700]>
        <[/COLOR]input type[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"submit"[/COLOR] value[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"Verstuur"[/COLOR] [URL="http://www.php.net/class"]class[/URL][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"f-submit"[/COLOR] tabindex[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"18"[/COLOR] /[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>
    <[/COLOR]/div[COLOR= #007700]>
<[/COLOR]/fieldset[COLOR= #007700]>
<[/COLOR]/form[COLOR= #007700]>[/COLOR]


[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]footer.php[/COLOR][COLOR= #007700]);[/COLOR] ?>
0
Remcoboy

Lid · Topicstarter

Berichten
4.749
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@Propje Parse error: syntax error, unexpected < in /home/verdien/domains/verdienzelf.nl/public_html/contactus.php on line 39
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
lijn 38: ?>
0
Remcoboy

Lid · Topicstarter

Berichten
4.749
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@Nielsie ja,

Als ik dit intyp:
ikben eneiviopehlvlfi oes7weoihn nerynhjfdn rdhfytnd ydrtnhbdjkfjgjjbjbn nutrjnvnfujurnvj ijtm igbntnivurhn g8hmguhe fvyur vujvujr fujeyhnrnfyu ru4vhrbn vm fhjbrnvnd jjrudghjf judishj bnsdfyuefhxb yidyisfhb sufdm,xjvsh sudhf dusfn shfbxnhjdjucudncn

Komt maar dit in me db:
ikben eneiviopehlvlfi oes7weoihn nerynhjfdn rdhfytnd ydrtnhbdjkfjgjjbjbn nutrjnvnfujurnvj ijtm igbntnivurhn g8hmguhe fvyur vujvujr fujeyhnrnfyu ru4vhrbn vm fhjbrnvnd jjrudghjf judishj bnsdfyuefhxb yid
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Geef SQL
is waarschijnlijk varchar
0
Remcoboy

Lid · Topicstarter

Berichten
4.749
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bedankt, kan erin dat mail echt moet dus met @ en . ?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
if(preg_match("/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z]+/", $_POST[email]) < 0){
echoGeen goeie email;;
}
0
Remcoboy

Lid · Topicstarter

Berichten
4.749
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nielsie:
if(preg_match("/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z]+/", $_POST[email]) < 0){
echoGeen goeie email;;
}

Werkt niet.
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]header.php[/COLOR][COLOR= #007700]);[/COLOR] ?>
echo"<h2>Contacteer [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] SITENAME[COLOR= #007700];[/COLOR] ?></h2>";
[COLOR= #0000BB]<?php[/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][COLOR= #DD0000]name[/COLOR][COLOR= #007700]])) {[/COLOR]
    [COLOR= #0000BB]$username[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]];[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR] [URL="http://www.php.net/strtolower"]strtolower[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]])!=[/COLOR] [URL="http://www.php.net/strtolower"]strtolower[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]texto[/COLOR][COLOR= #007700]])){[/COLOR] 
        [COLOR= #0000BB]$display_error[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"* Security Code Error"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// error language[/COLOR]
        [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]error.php[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]();
    }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$name[/COLOR][COLOR= #007700]=[/COLOR]limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"name"[/COLOR][COLOR= #007700]]);[/COLOR]
        [COLOR= #0000BB]$email[/COLOR][COLOR= #007700]=[/COLOR]limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"email"[/COLOR][COLOR= #007700]]);[/COLOR]
        [COLOR= #0000BB]$topic[/COLOR][COLOR= #007700]=[/COLOR]limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"topic"[/COLOR][COLOR= #007700]]);[/COLOR]
        [COLOR= #0000BB]$subject[/COLOR][COLOR= #007700]=[/COLOR]limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"subject"[/COLOR][COLOR= #007700]]);[/COLOR]
        [COLOR= #0000BB]$comments[/COLOR][COLOR= #007700]=[/COLOR]limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"comments"[/COLOR][COLOR= #007700]]);[/COLOR]

        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$name[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$topic[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$subject[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$comments[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]){[/COLOR]
            [COLOR= #0000BB]$display_error[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"* All fields are required"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// error language[/COLOR]
            [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]error.php[/COLOR][COLOR= #007700]);[/COLOR]
            [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]();
        }[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/preg_match"]preg_match[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z]+/"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]]) <[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Geen goeie email;[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$laip[/COLOR] [COLOR= #007700]=[/COLOR] getRealIP[COLOR= #007700]();[/COLOR]
        [COLOR= #0000BB]$myDb[/COLOR][COLOR= #007700]->[/COLOR]connect[COLOR= #007700]();[/COLOR]
            [COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"INSERT INTO yob_contact (name, email, topic, subject, comments, ip) VALUES($name,$email,$topic,$subject,$comments,$laip)"[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
        [COLOR= #0000BB]$myDb[/COLOR][COLOR= #007700]->[/COLOR]close[COLOR= #007700]();[/COLOR]

        [COLOR= #0000BB]$display_error[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"* Your Message has been sent correctly."[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// error language[/COLOR]
        [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]error.php[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]();
    }
}
}[/COLOR]


[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"<p>Gebruik het onderstaande formulier om <?php echo SITENAME; ?> te contacteren.</p>"[/COLOR][COLOR= #007700];[/COLOR]
?>

<form action="contactus.php" method="post" class="f-wrap-1">
    <div class="req">Alle velden verplicht</div>
    <fieldset>
    <h3>Contact Formulier</h3>

    <label><b>Uw naam:</b>
    <input type="text" name="name" autocomplete="off" class="f-name" value="" tabindex="1" /><br />
    </label>
    <label><b>Uw E-Mail:</b>
    <input type="text" name="email" autocomplete="off" class="f-name" value="" tabindex="2" /><br />
    </label>
    <label><b>Onderwerp:</b>
    <input type="text" name="topic" autocomplete="off" class="f-name" value="" tabindex="3" /><br />
    </label>
    <label><b>Vraag:</b>
    <input type="text" name="subject" autocomplete="off" class="f-name" value="" tabindex="4" /><br />
    </label>
    <label><b>Commentaar:</b>
    <textarea name="comments" rows="7" class="f-comments" value="" tabindex="5"></textarea><br />
    </label>
    <label><b>Beveiligingscode:</b>
    <input type=text name=code autocomplete="off" class="f-name" value="" tabindex="6" /><br />
    </label>
    <label for="code2"><b>&nbsp;</b>
    <img src="image.php?[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$res[/COLOR][COLOR= #007700];[/COLOR] ?>" /><br />
    </label>
    <div class="f-submit-wrap">
        <input type="submit" value="Verstuur" class="f-submit" tabindex="18" /><br />
    </div>
</fieldset>
</form>


[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]footer.php[/COLOR][COLOR= #007700]);[/COLOR] ?>
0
Remcoboy

Lid · Topicstarter

Berichten
4.749
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@Niels nog niet..
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
hmm
had de code van internet emoveranderd < is in >
0
Remcoboy

Lid · Topicstarter

Berichten
4.749
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wat bedoel je?
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