[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net • Toon onderwerp - to captcha or not?
aan alle goede dingen komt een eind, webmasterplein.net 2003 - 2013
wij danken jullie voor al mooie momenten die dankzij dit forum ontstonden - Derk, Rutger en Stef

to captcha or not?

Je komt er niet helemaal uit bij het scripten? Übergoede functie geschreven? Alles met betrekking tot scripting, kun je hier terecht.

to captcha or not?

Berichtdoor julien » 23 feb 2006 21:36

Avatar gebruiker
julien
wmpr
 
Berichten: 2195
Geregistreerd: 28 nov 2003 16:21
Woonplaats: Kortrijk

Re: to captcha or not?

Berichtdoor Derk » 23 feb 2006 22:09

Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Re: to captcha or not?

Berichtdoor julien » 23 feb 2006 22:26

Avatar gebruiker
julien
wmpr
 
Berichten: 2195
Geregistreerd: 28 nov 2003 16:21
Woonplaats: Kortrijk

Re: to captcha or not?

Berichtdoor KillerSponge » 23 feb 2006 23:22

Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: to captcha or not?

Berichtdoor julien » 23 feb 2006 23:26

Avatar gebruiker
julien
wmpr
 
Berichten: 2195
Geregistreerd: 28 nov 2003 16:21
Woonplaats: Kortrijk

Re: to captcha or not?

Berichtdoor KillerSponge » 23 feb 2006 23:26

Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: to captcha or not?

Berichtdoor Derk » 24 feb 2006 09:05

Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Re: to captcha or not?

Berichtdoor julien » 24 feb 2006 10:00

Avatar gebruiker
julien
wmpr
 
Berichten: 2195
Geregistreerd: 28 nov 2003 16:21
Woonplaats: Kortrijk

Re: to captcha or not?

Berichtdoor Derk » 24 feb 2006 15:36

Als je PHP wilt gebruiken moet de extensie .php zijn. Tenminste dit is op de meeste servers. Het is mogelijk met htaccess dit te veranderen, maar dat lijkt me niet echt nodig, of was dit niet je probleem?

Derk
Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Re: to captcha or not?

Berichtdoor julien » 24 feb 2006 15:39

Avatar gebruiker
julien
wmpr
 
Berichten: 2195
Geregistreerd: 28 nov 2003 16:21
Woonplaats: Kortrijk

Re: to captcha or not?

Berichtdoor KillerSponge » 24 feb 2006 15:48

Nou, eens even kijken.
Op phphulp.nl zoeken op "captcha" levert een aantal hits op, deze gebruikt GD:


Je zet het script in een .php bestandje, veranderd onderaan het form dat ze gebruiken (je voegt dus gewoon een aantal invulveldjes toe), en je vervangt deze regel:

[code="php"]die ( '<font color="#008000">Correcte Code!</font>' ); [/code]

Door het stuk code waar de mail mee verstuurd wordt.

Als het niet lukt roep je maar ^^
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: to captcha or not?

Berichtdoor julien » 24 feb 2006 16:15

Ik zie totaal niet wat ik moet doen...
aiaiai, php wil maar niet vlotten.

Ik heb dus volgende bestanden:
http://www.cadsite.be/contact/contact.old -> .shtml
en
http://www.cadsite.be/contact/mail.old -> .php

ik veronderstel dat ik van de mail.php moet afblijven en dat ik contact.shtml moet samen smelten met het captcha bestand, is dat juist?
Avatar gebruiker
julien
wmpr
 
Berichten: 2195
Geregistreerd: 28 nov 2003 16:21
Woonplaats: Kortrijk

Re: to captcha or not?

Berichtdoor KillerSponge » 24 feb 2006 17:00

Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: to captcha or not?

Berichtdoor julien » 24 feb 2006 17:04

Natuurlijk!

Contact.shtml :
[code="html"]<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>juliens cadsite - contact mogelijkheden</title>
<meta name="Title" content="juliens cadsite - contact mogelijkheden">
<meta name="Author" content="julien">
<meta name="Subject" content="autocad">
<meta name="Description" content="Hier vind je de contact mogelijkheden">
<meta name="Keywords" content="autocad, contact, chat, chatbox, adverteer, forum, Autocad, gratis, cursus, cad">
<meta name="Language" content="Nederlands">
<meta name="Revisit-After" content="30 Days">
<meta name="Robots" content="All">
<link rel="SHORTCUT ICON" href="http://www.cadsite.be/favicon.ico">
<link rel="stylesheet" type="text/css" href="http://www.cadsite.be/julien.css">
</head>

<body>
<div id="venster">
<script language="JavaScript" src="http://www.cadsite.be/cadmenu.js"></script>

<h1>Contact</h1>
<form action="mail.php" method="post">
<table>
<tr>
<td>Uw naam:</td>
<td><input type="text" name="name"></td>
</tr>

<tr>
<td>Uw E-Mail adres:</td>
<td><input type="text" name="email"></td>
</tr>
<tr>
<td>Onderwerp</td>
<td><input type="text" name="subject"></td>
</tr>

<tr>
<td>Uw bericht:</td>
<td><textarea name="body" rows="10" cols="20"></textarea></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="sent" value="Verstuur"></td>
</tr>

</table>
</form>
<br>
<!--#include virtual="/voet.html" -->
</div>
</body>
</html>[/code]

Mail.php:
[code="php"]<?php

/*
Simpel contact formulier script door Wido den Hollander <wido@pcextreme.nl>
*/

/* Instellingen */

// Naar welk e-mail adres moet de e-mail?
$rcptTo = "info@cadsite.be";

// Welke pagina moeten we tonen zodra de mail verstuurd is?
$thankYouPage = "http://www.cadsite.be/contact/bedankt.shtml";

// Welke pagina laten we zien als het versturen mislukt?
$errorPage = "http://www.cadsite.be/error/404.html";

// Welk onderwerp moet de e-mail krijgen? (Wordt genegeert als $_POST['subject']; is opgegeven)
$subject = "Contactformulier cadsite.be";

/* Einde instellingen! */

function isValidName($string){
return eregi("^[a-z0-9]*$",$string);
}

function isValidMailAddress($string){
return ereg("^[a-z0-9_\.-]+@[a-zA-Z0-9\.-]+\.[a-zA-Z]{2,4}$", $string);
}

if(!empty($_POST['subject']))
$subject = $_POST['subject'];

if(!isValidName($_POST['name']))
header("Location: ".$errorPage);

if(!isValidMailAddress($_POST['email']))
header("Location: ".$errorPage);

$headers = "From: ".$_POST['name']." <".$_POST['email'].">\r\n";
$headers .= "Return-Path: ".$_POST['email']."\r\n";
$headers .= "Reply-To: ".$_POST['email']."\r\n";
$headers .= "Content-Type: text/plain\r\n";
$headers .= "X-Mailer: PHP/".phpversion()."\r\n";
$headers .= "X-Abuse-Tracker: ".$_SERVER['REMOTE_ADDR']."\r\n";

if(!mail($rcptTo, $subject, $_POST['body'], $headers))
header("Location: ".$errorPage);
else
header("Location: ".$thankYouPage);

?>[/code]

En het scriptje dat je gepost hebt:
[code="php"]<?php
session_start ( );
srand ( microtime ( ) * 100000000 );
function gen_string ( $num_chars = 6 )
{
$chars = 'a b c d e f g h i j k l m n o p q r s t u v w x y z 1 2 3 4 5 6 7 8 9 0';
$chars = explode ( ' ', $chars );
for ( $i = 0; $i < $num_chars; $i++ )
{
if ( strlen ( $return ) < $num_chars )
{
$return .= $chars[rand ( 0, ( count ( $chars ) - 1 ) )];
}
}
return $return;
}
if ( $_POST )
{
if ( md5 ( base64_encode ( $_POST['code'] ) ) == $_POST['the_code'] )
{
die ( '<font color="#008000">Correcte Code!</font>' );
}
else
{
die ( '<font color="#800000">Foute Code!</font>' );
}
}
if ( isset ( $_GET['image'] ) )
{
// Alle instellingen:D
session_start ( );
$code = ( $_SESSION['string'] ) ? base64_decode ( $_SESSION['string'] ) : 'ReLoAd';
$lines = 25;
$dots = 100;
$width = strlen ( $code ) * 20;
$height = 30;
$im = imagecreate ( $width, $height );
// kleuren
$bg = imagecolorallocate ( $im, 0xff, 0xff, 0xff );
$text_color = imagecolorallocate ( $im, 0x00, 0x00, 0x00 );
$line_color = imagecolorallocate ( $im, 0x00, 0x80, 0x00 );
$dot_color = imagecolorallocate ( $im, 0x80, 0x00, 0x00 );
imagecolortransparent ( $im );
// lijnen
for ( $line = 0; $line < $lines; $line++ )
{
imageline ( $im, rand ( 0, $width ), rand ( 0, $height ), rand ( 0, $width ), rand ( 0, $height ), $line_color );
}

// stippen
for ( $dot = 0; $dot < $dots; $dot++ )
{
imagesetpixel ( $im, rand ( 0, $width ), rand ( 0, $height ), $dot_color );
}

// en nu het ECHTE werk:D
// de tekst
$chars = preg_split ( '//', $code );
$x = -12;

for ( $i = 0; $i < count ( $chars ); $i++ )
{
imagechar ( $im, rand ( 5, 5 ), $x, rand ( 0, $height - 15 ), $chars[$i], $text_color);
$x = $x + 20;
}

if ( function_exists ( 'imagegif' ) )
{
header ( 'Content-Type: image/gif' );
imagegif ( $im );
}
elseif ( function_exists ( 'imagejpeg' ) )
{
header ( 'Content-Type: image/jpeg' );
imagejpeg ( $im );
}
imagedestroy ( $im );
}
else
{
$characters = ( $_GET['chars'] ) ? $_GET['chars'] : 6;
$_SESSION['string'] = base64_encode ( gen_string ( $characters ) );
?>
<html dir="ltr">
<head>
<title>Verificatie Test</title>
</head>
<body bgcolor="grey">
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<input type="text" name="code" maxlength="6" size="6">&nbsp;&nbsp;&nbsp;<img src="<?php echo $_SERVER['PHP_SELF']; ?>?image" height="30px" width="<?php echo ( 20 * $characters ); ?>px" alt="Code">
<br /><input type="hidden" name="the_code" value="<?php echo md5 ( $_SESSION['string'] ); ?>"><input type="submit">
</form>
</body>
</html>
<?php
}
?>[/code]
Avatar gebruiker
julien
wmpr
 
Berichten: 2195
Geregistreerd: 28 nov 2003 16:21
Woonplaats: Kortrijk

Re: to captcha or not?

Berichtdoor KillerSponge » 24 feb 2006 17:29

Wat je nu doet is het form in het ene, en het eigenlijke script in het andere bestand zetten.

Het script van phphulp gebruikt daar één bestand voor. Wat je nu gewoon moet doen is het form uit contact.shtml in het form van het script zetten. Dus gewoon extra invoegveldjes e.d. toevoegen.

Daarna voeg je het script van mail.php toe op de plek van "die ( '<font color="#008000">Correcte Code!</font>' );" (deze hele regel vervang je), zonder de <? en ?> tags.

Als het je nu niet lukt wil ik het wel even voor je doen ^^
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: to captcha or not?

Berichtdoor julien » 24 feb 2006 22:33

Dankzij je uitleg ben ik weer wat verder...

Dit werkt al ongeveer:
http://rommelbelg.cadsite.be/inhoud/contact_captcha.php

Maar wanneer ik het include gaat het niet meer...
http://rommelbelg.cadsite.be/index.php? ... ct_captcha
Avatar gebruiker
julien
wmpr
 
Berichten: 2195
Geregistreerd: 28 nov 2003 16:21
Woonplaats: Kortrijk

Re: to captcha or not?

Berichtdoor julien » 24 feb 2006 22:43

Nog een ander vraagje ook:

Naast het tekst veld zou ik graag nog wat extra velden willen toevoegen.

Dit stond er:
[code="html"]if(!mail($rcptTo, $subject, $_POST['body'], $headers))
header("Location: ".$errorPage);
else
header("Location: ".$thankYouPage);[/code]
Dit maakte ik ervan:
[code="html"]if(!mail($rcptTo, $subject, $_POST['body'],$_POST['plaats'], $headers))
header("Location: ".$errorPage);
else
header("Location: ".$thankYouPage);[/code]
Die 'plaats' kreeg ik wel, maar de afzender ben ik nu kwijt...
Avatar gebruiker
julien
wmpr
 
Berichten: 2195
Geregistreerd: 28 nov 2003 16:21
Woonplaats: Kortrijk

Re: to captcha or not?

Berichtdoor KillerSponge » 24 feb 2006 23:34

Het includen werkt niet, omdat hij een aantal keer $_SERVER['PHP_SELF'] gebruikt. Deze variabele geeft de bestandsnaam terug. Dus als je die variabele telkens veranderd in het juiste bestand. (denk ik Razz)

En bij het 2e probleem: Je past nu het aantal parameters van de mail() functie aan. Als je in het mailtje meerdere dingen wil meesturen, moet je ze met een punt verbinden. Dus niet $_POST['body'],$_POST['plaats'] maar $_POST['body'].$_POST['plaats'].

Hopelijk is het weer iets duidelijker ^^
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: to captcha or not?

Berichtdoor julien » 25 feb 2006 14:24

Avatar gebruiker
julien
wmpr
 
Berichten: 2195
Geregistreerd: 28 nov 2003 16:21
Woonplaats: Kortrijk

Re: to captcha or not?

Berichtdoor julien » 27 feb 2006 09:44

Ik heb het formulier wat uitgebreid, dat komt allemaal netjes toe, ook heb ik die
$_SERVER['PHP_SELF'] vervangen door de juiste URL, alles werkt nog steeds correct, totdat ik alles include. Embarassed
Heb je een idee wat het nog zou kunnen zijn?
Avatar gebruiker
julien
wmpr
 
Berichten: 2195
Geregistreerd: 28 nov 2003 16:21
Woonplaats: Kortrijk

Re: to captcha or not?

Berichtdoor Rik » 27 feb 2006 09:50

Om de een of andere reden is de cookie al verzonden.
Hoe dat kan weet ik niet.
En zit in de pagina die 't include al session_start()?
Dan hoef je dat namelijk niet meer in dat bestand dat je include te zetten.
Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Re: to captcha or not?

Berichtdoor KillerSponge » 27 feb 2006 10:10

Volgens mij worden er geen sessies gebruikt... Wat doet hij niet? Geeft hij een error?
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: to captcha or not?

Berichtdoor julien » 27 feb 2006 10:15

Wanneer ik de pagina rechtstreeks aanroep via:
http://rommelbelg.cadsite.be/inhoud/meldmarkt.php
gaat alles correct.
Wanneer ik ze echter open via de include:
http://rommelbelg.cadsite.be/index.php?p=meldmarkt
Krijg ik een error:
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cadsite.be/rommelbelg/index.php:8) in /home/cadsite.be/rommelbelg/inhoud/contact_captcha.php on line 2
Avatar gebruiker
julien
wmpr
 
Berichten: 2195
Geregistreerd: 28 nov 2003 16:21
Woonplaats: Kortrijk

Re: to captcha or not?

Berichtdoor KillerSponge » 27 feb 2006 10:21

Oja, sorry, je gebruikt idd sessions ^^

In het gedownloade script wordt bovenaan session_start() gebruikt. Session_start() moet persé(!) helemaal bovenaan de pagina, nog voordat er html output is. Je moet dus bovenaan index.php session_start() toevoegen, en dan de session_start() in het gedownloade script verwijderen. Ik denk dat het dan wel moet werken Smile
Blabla en andere onzin - http://killersponge.nl
Avatar gebruiker
KillerSponge
Beheerder
Beheerder
 
Berichten: 14456
Geregistreerd: 24 aug 2004 13:05

Re: to captcha or not?

Berichtdoor julien » 27 feb 2006 10:29

Dat heb ik even aangepast maar nu krijg ik de foutmelding op elke pagina en op
http://rommelbelg.cadsite.be/index.php?p=meldmarkt
is de captcha niet meer te zien. Sad(
Avatar gebruiker
julien
wmpr
 
Berichten: 2195
Geregistreerd: 28 nov 2003 16:21
Woonplaats: Kortrijk

Volgende

Keer terug naar PHP, ASP, SQL



cron