| Author | Message | 
				 
	
					
						| 
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 14/11/2012 14:41:42
	 | 
					
						
						| 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>
 
 
 
 | 
		
					 
						|  | 
	
					
						| 
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 14/11/2012 14:46:36
	 | 
					
						
						| 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. | 
		
					 
						|  | 
	
					
						| 
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 14/11/2012 14:48:48
	 | 
					
						
						| luck84000 Beginner
 
 Joined: 12/11/2012 18:08:01
 Messages: 8
 Offline
 
 | I do not insert code. , Help me. | 
		
					 
						|  | 
	
					
						| 
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 14/11/2012 14:49:04
	 | 
					
						
						| luck84000 Beginner
 
 Joined: 12/11/2012 18:08:01
 Messages: 8
 Offline
 
 | I do not insert code. , Help me. | 
		
					 
						|  | 
	
					
						| 
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 14/11/2012 22:37:05
	 | 
					
						
						| Carbonize Master
 
 ![[Avatar]](/forum/images/avatar/96871336492d73e733f55.jpg) 
 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
 | 
		
					 
						|  | 
	
					
						| 
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 15/11/2012 02:51:39
	 | 
					
						
						| luck84000 Beginner
 
 Joined: 12/11/2012 18:08:01
 Messages: 8
 Offline
 
 | CAPTCHA , It's creates annoying and boring in this shot. | 
		
					 
						|  | 
				
		
				
					|  |