If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: luck84000
Forum Index » Profile for luck84000 » Messages posted by luck84000
Author Message
CAPTCHA , It's creates annoying and boring in this shot.
I do not insert code. , Help me.
I do not insert code. , Help me.
I need captcha because user restart the phone (To change the IP.) and delete the cookie's new To vote. non-stop.

Sorry: my English is bad.


advanced poll: Before Vote --> I want to reply CAPTCHA before.

How do I insert PHP code. / Thankyou




------------ download code -------------
www.captcha.fr/versions/cryptographp_1.4.zip
----------------Ex------------------

<?php
$cryptinstall="crypt/cryptographp.fct.php";
include $cryptinstall;

// ถ้า user submit ฟอร์มมา
if( $_POST['ispostback'] ){

// ถ้าป้อน captcha มาถูกต้อง
if (chk_crypt($_POST['captcha'])){

echo "ถูกต้อง";
} else{
// ถ้าป้อน captcha ไม่ถูกต้อง
echo "ป้อน captcha ไม่ถูกต้อง ไม่ให้เก็บข้อมูลลงฐาน";
}

}
?>
<html>
<head>
<title>Cryptographp</title>
</head>
<body>
<form id="form1" method="post" action="">
<p>
<label for="username">username </label>
<input type="text" name="username" id="username" />
<label for="password">password </label>
<input type="text" name="password" id="password" />
<label for="captcha">captcha </label>
<!-- เตรียมช่องไว้ให้ user ป้อน captcha-->
<input type="text" name="captcha" id="captcha" />
<!-- แสดงภาพ captcha -->
<?php dsp_crypt(0,1); ?>
<input name="ispostback" type="hidden" value="true" />
<input type="submit" name="button" id="button" value="Submit" />
</p>
</form>
</body>
</html>

-----------------------

Poll View --> display_foot

</table>
<label for="captcha">captcha </label>
<!-- เตรียมช่องไว้ให้ user ป้อน captcha-->
<input type="text" name="captcha" id="captcha" />
<?php dsp_crypt(0,1); ?>

<input type="hidden" name="action" value="vote">
<input type="hidden" name="poll_ident" value="$poll_id">
<input type="submit" value="$pollvars[vote_button]" class="input">
<br>
<br>
<font face="$pollvars[font_face]" color="$pollvars[font_color]" size="1"><a href="$this->form_forward?action=results&poll_ident=$poll_id">$pollvars[result_text]</a></font>
</td>
</tr>
<tr valign="top" align="center">
<td> </td>
</tr>
</table>
</form>
<font face="$pollvars[font_face]" size="1"></font>
</td>
</tr>
</table>
</td>
</tr>
</table>


Hello. webmaster
I will follow you.
thankyou.
thankyou
Sorry, my English is not good.
My system : Advanced Poll 2.0.9 / windows server 2008 / Xmapp 1.7.7 / Apache
---------------------------------
I found the problem.

If the option is not selected, then press the button (Vote)

Result :
The system saves the option_id == 0.
the system will not have to vote again ("You have already voted!").

Help me
How to check if option (option_id) not selected. ?

thankyou
 
Forum Index » Profile for luck84000 » Messages posted by luck84000
Go to:   
Based on the open source JForum