我在同一页面上有两个表单从iframes..so导入它们页面ff.php我有form1.php和form2.php都有相同的captcha脚本..但表单字段彼此不同现在的问题是,当我输入正确的验证码时,它显示你输入了错误的验证码......虽然我也指定验证码会话的方式不同
对于form1.php验证码会话是不同的:
<?php
session_start();
$captcha->session_var = 'captcha1';
$tuCurl = curl_init();
curl_setopt($tuCurl, CURLOPT_URL, $url);
curl_setopt($tuCurl, CURLOPT_RETURNTRANSFER, 1);
$tuData = curl_exec($tuCurl);
curl_close($tuCurl);
$userip = explode(',',$tuData);
$ipcountry = str_replace('"', '', $userip[3]);
对于form2.php验证码会话是不同的:
<?php
session_start();
$captcha->session_var = 'captcha2';
$tuCurl = curl_init();
curl_setopt($tuCurl, CURLOPT_URL, $url);
curl_setopt($tuCurl, CURLOPT_RETURNTRANSFER, 1);
$tuData = curl_exec($tuCurl);
curl_close($tuCurl);