werkt niet :(

Gestart doorOne2xs25 reacties26 weergaven

26 berichten · pagina 2 van 2

One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
wie heeft een goeie captcha emo?
want er is een spammer die proxys gebruikt op men site (fmgroup.me)
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
recaptcha.org
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
@Rik
ik zoek gewoon een simpele
(zoeen als o2xs)
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Nielsie:
@Rik
ik zoek gewoon een simpele
(zoeen als o2xs)

recaptcha is simpel?

Account maken, bestandje includen, 2 regels plaatsen (en eentje voor check) en klaar biggrin
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
ik vindt hem gewoon te uitgebreid
ik wil gewon kleintje het is maar voor 1 gastenboek emo
0
Berichten
592
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Deze is van mezelf...

Deze code helemaal bovenaan pagina zetten, waar je afbeelding staat

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

[COLOR= #0000BB]$aCaptcha[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL] [COLOR= #007700]([/COLOR]
[URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]8a2bd[/COLOR][COLOR= #007700]),[/COLOR]
[URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]vw901[/COLOR][COLOR= #007700]),[/COLOR]
[URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]h12h4[/COLOR][COLOR= #007700]),[/COLOR]
[URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]6hi18[/COLOR][COLOR= #007700]),[/COLOR]
[URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]67k5l[/COLOR][COLOR= #007700]),[/COLOR]
[URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]31rm2[/COLOR][COLOR= #007700]),[/COLOR]
[URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]x23i9[/COLOR][COLOR= #007700]),[/COLOR]
[URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]1l7m0[/COLOR][COLOR= #007700]),[/COLOR]
[URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]o8k04[/COLOR][COLOR= #007700])
);[/COLOR]

[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]key[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/mt_rand"]mt_rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]8[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$image[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]/images/captcha/[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]key[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000].jpg[/COLOR][COLOR= #007700];[/COLOR]
?>


Dit in je HTML, waar afbeelding en input moet komen

<img src="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$image[/COLOR][COLOR= #007700];[/COLOR] ?>" class="captcha"/><br/>
<input type="text" name="captcha"><br/><br/>


Dit in register_check.php of hoe je ook wilt noemen

session_start();

$aCaptcha = array (8a2bd, vw901, h12h4, 6hi18, 67k5l, 31rm2, x23i9, 1l7m0, o8k04);
$captcha = mysql_real_escape_string($_POST[captcha]);
$key = $_SESSION[key];


Dit ook in register_check

elseif($aCaptcha[$_SESSION[key]] != $captcha)
{
echo "Onjuiste captcha ingevuld." . "<br/>";
echo "Klik " . <a href="register.php"> . "hier" . </a> . " om terug te gaan.";
}


Dit is het dan en als het goed is moet-ie werken, bij moet deed-ie het in elk geval wel...
Ohja, je moet wel even zelf de plaatjes erbij maken.

Ruben,
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
dat is geen echte captcha toch?
0
Erik

Lid

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nielsie:
dat is geen echte captcha toch?

Klopt.
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
TNX
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Op verzoek van de topicstarter een slotje.
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