please tell me why its tell "Captcha: You entered wrong captcha code."

Started on the old forum in November 2014 · view the original in the archive · old links redirect here

6 replies · 123 views · started 12 years ago · 1 min read

4 participants
shohel Junior · 19 posts #1

please tell me why its tell "Captcha: You entered wrong captcha code." please register http://topm.ga/signup.php you can understand what i say

shohel Junior · 19 posts #2

he is the signup.php

<?php
/**
*
*/
session_start();
define('IN_MOB',1);
require_once './inc/init.php';
if($mob->settings['tid'] == 0)
{
$errors = array();
if(isset($mob->input['act']) && $mob->input['act'] == "signup")
{
if(isset($mob->input['captcha']) && $_SESSION['captcha'] == $mob->input['captcha'])
{
$data = array("name" => $mob->input['name'] , "domain" => $mob->input['domain'] , "email" => $mob->input['email'] , "password" => $mob->input['password'] , "password2" => $mob->input['password2']);
require_once './inc/datahandler.php';
$toplist = new Datahandler('add_toplist');
$toplist->set_data($data);
$toplist->validate_toplist();
if(count($toplist->get_errors()) <= 0)
{
$toplist_tid = $toplist->add_toplist();
mob_setcookie("mobtid",$toplist_tid,null,true);
mob_setcookie("password",base64_encode(md5(md5($da ta['password']))),null,true);
header('Location: /manage.php');
}
else
{
$errors = $toplist->get_errors();
}
}
else
{
$errors['captcha'] = array("error_code" => "captcha" , "data" => "You entered wrong captcha code.");
}
}
require_once './header.php';
$signup = $template->loadTemplate('signup.tpl');
$data['name'] = isset($mob->input['name']) ? $mob->input['name'] : '';
$data['domain'] = isset($mob->input['domain']) ? $mob->input['domain'] : 1;
$data['email'] = isset($mob->input['email']) ? $mob->input['email'] : '';
$signup->display(["domainlist" => get_domainlist() , "errors" => $errors , "data" => $data]);
include_once './footer.php';
}
else
{
header('Location: /index.php');
}
shohel Junior · 19 posts #3

please someone help :(me

GumSlone Administrator Principal · 1,690 posts #4

you can disable captcha if it doesnt work for you, probably the session var with captcha code is not transferred to the signup.php

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

subzero Super moderator Fellow · 3,954 posts #6

You might need to add require_once '/captcha.php'; its not seeing what you posted.

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

kevk3v Senior · 332 posts #7

Replace on signup.php

<?php
/**
*
*/

with

<?php
session_start();
var_dump($_POST);
var_dump($_SESSION);
exit;

Then copy the output here.

Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close