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 
advanced poll: Before Vote --> I want to reply CAPTCHA before.  XML
Forum Index » Support Forum
Author Message
luck84000
Beginner

Joined: 12/11/2012 18:08:01
Messages: 8
Offline


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>


luck84000
Beginner

Joined: 12/11/2012 18:08:01
Messages: 8
Offline

I need captcha because user restart the phone (To change the IP.) and delete the cookie's new To vote. non-stop.
luck84000
Beginner

Joined: 12/11/2012 18:08:01
Messages: 8
Offline

I do not insert code. , Help me.
luck84000
Beginner

Joined: 12/11/2012 18:08:01
Messages: 8
Offline

I do not insert code. , Help me.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

How would captcha stop them if they are that determined to vote multiple times?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
luck84000
Beginner

Joined: 12/11/2012 18:08:01
Messages: 8
Offline

CAPTCHA , It's creates annoying and boring in this shot.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum