Ik heb marboek 28-02 verhuisd naar een andere host, de 28e en de 29e werkte mijn contact en reactiesysteem met ingebouwde captcha wel. Nu een paar dagen werkt het niet meer, ik heb niks aangepast. Iedere keer krijg ik de melding dat de ingevulde code fout is. Op kfb-design werk ik met exact dezelfde contactpagina met hetzelfde captchasyteem en daar doet hij het wel. Beide websites staan op dezelfde hosts, heeft iemand enig idee waar dit probleem vandaan komt en wat ik eraan kan doen?
captcha probleem
Heb je ergens iets waar we het kunnen testen?
Of misschien een relevant stuk code?
Of misschien een relevant stuk code?
imagelibary ofzo moet aanstaan op de server.
is dat aan
is dat aan

Smiegles schreef:http://www.marboek.nl/index.php?p=contactimagelibary ofzo moet aanstaan op de server.
is dat aan
Daar zie je de captcha staan, dus GD staat aan, anders zou je de afbeelding ook niet moeten kunnen zien

Xjessex schreef:en ik zei dat me contactpagina op kfb-design wel werkt en die staat op dezelfde hostis dat aanEerdere citaten tonen
Smiegles schreef:imagelibary ofzo moet aanstaan op de server.
http://www.marboek.nl/index.php?p=contact
Daar zie je de captcha staan, dus GD staat aan, anders zou je de afbeelding ook niet moeten kunnen zien

dit is captcha.php:
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]// generate random number and store in session[/COLOR]
[COLOR= #0000BB]$randomnr[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/rand"]rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]1000[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]9999[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]randomnr2[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/md5"]md5[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$randomnr[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]//generate image[/COLOR]
[COLOR= #0000BB]$im[/COLOR] [COLOR= #007700]=[/COLOR] imagecreatetruecolor[COLOR= #007700]([/COLOR][COLOR= #0000BB]100[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]38[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]//colors:[/COLOR]
[COLOR= #0000BB]$white[/COLOR] [COLOR= #007700]=[/COLOR] imagecolorallocate[COLOR= #007700]([/COLOR][COLOR= #0000BB]$im[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]176[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]146[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]138[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$grey[/COLOR] [COLOR= #007700]=[/COLOR] imagecolorallocate[COLOR= #007700]([/COLOR][COLOR= #0000BB]$im[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]160[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]160[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]160[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$black[/COLOR] [COLOR= #007700]=[/COLOR] imagecolorallocate[COLOR= #007700]([/COLOR][COLOR= #0000BB]$im[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]247[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]242[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]236[/COLOR][COLOR= #007700]);[/COLOR]
imagefilledrectangle[COLOR= #007700]([/COLOR][COLOR= #0000BB]$im[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]200[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]50[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$black[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]//path to font:[/COLOR]
[COLOR= #0000BB]$font[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Sahara.ttf[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #FF8000]//draw text:[/COLOR]
imagettftext[COLOR= #007700]([/COLOR][COLOR= #0000BB]$im[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]25[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]5[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]21[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]29[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$grey[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$font[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$randomnr[/COLOR][COLOR= #007700]);[/COLOR]
imagettftext[COLOR= #007700]([/COLOR][COLOR= #0000BB]$im[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]25[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]5[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]18[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]34[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$white[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$font[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$randomnr[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]// prevent client side caching[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Expires: Wed, 1 Jan 2020 00:00:00 GMT"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Last-Modified: "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/gmdate"]gmdate[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"D, d M Y H:i:s"[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]" GMT"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Cache-Control: no-store, no-cache, must-revalidate"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Cache-Control: post-check=0, pre-check=0"[/COLOR][COLOR= #007700],[/COLOR] false[COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Pragma: no-cache"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]//send image to browser[/COLOR]
[URL="http://www.php.net/header"]header[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"Content-type: image/gif"[/COLOR][COLOR= #007700]);[/COLOR]
imagegif[COLOR= #007700]([/COLOR][COLOR= #0000BB]$im[/COLOR][COLOR= #007700]);[/COLOR]
imagedestroy[COLOR= #007700]([/COLOR][COLOR= #0000BB]$im[/COLOR][COLOR= #007700]);[/COLOR]
?> session_start() 

had ik er staan maar had m even weggehaald. Maar met of zonder maakt niet uit, blijf dezelfde fout krijgen.
Ik krijg:
"Uw bericht is succesvol verzonden!
Ik zal uw bericht z.s.m. beantwoorden."
?
"Uw bericht is succesvol verzonden!
Ik zal uw bericht z.s.m. beantwoorden."
?nou ja, bij mij werkt het niet en ik had gister ook een aantal mensen gevraagd of zij het wilden proberen en bij niemand lukte het 

Ik kan nu ook gewoon weer reageren op je blogs 

Pfff, met firefox lukt het mijzelf nu ook weer, ik heb helemaal niks veranderd sinds gisteren
In opera werkt het nog steeds niet... ***browser
maar goed, bedankt allemaal.
In opera werkt het nog steeds niet... ***browsermaar goed, bedankt allemaal.
Leeg je cache van Opera dan weer eens, misschien werkt het dan 
