View Single Post
ישן 13-04-11, 18:41   # 1
ProNati
חבר מתקדם
 
מיני פרופיל
תאריך הצטרפות: Mar 2011
הודעות: 427

ProNati לא מחובר  

Post עזרה בקוד אבטחה לטופס !

שלום!

אני רוצה שברשמה באתר שלי (לא משנה מהוא ) היה קוד אבטחה שאנשים לא ירשמו מלא פעמים.

עשיתי לפי המדריך הזה

http://www.white-hat-web-design.co.u...hp-captcha.php

הצלחת להציב את הקוד שמה ונגיד שאני סתם רושם קוד לא נכון ועושה "שלח" זה לא עוצר אותי! זה ממשיך כאילו הקוד נכון.
זאת אומרת אין אימות תמונה.

אני רוצה לדעת איך אני מסדר את זה.

אני יודע שהבעיה היא בקוד הזה
קוד:
<?php 
   session_start();
   if(($_SESSION['security_code'] == $_POST['security_code']) && (!empty($_SESSION['security_code'])) ) {
      // Insert you code for processing the form here, e.g emailing the submission, entering it into a database. 
      unset($_SESSION['security_code']);
   } else {
      // Insert your code for showing an error message here
   }
?>
שמתי אותו מתחת לקוד PHP באתר שיש לו תגית php בהתחלה ו-?> בסוף


שמתי תקוד הזה בלי ה-Php בהתחלה ואת התגיד ?> בגלל שיש אותם כבר.
קוד:
   session_start();
   if(($_SESSION['security_code'] == $_POST['security_code']) && (!empty($_SESSION['security_code'])) ) {
      // Insert you code for processing the form here, e.g emailing the submission, entering it into a database. 
      unset($_SESSION['security_code']);
   } else {
      // Insert your code for showing an error message here
תודה לעוזרים !!!

Last edited by ProNati; 13-04-11 at 18:44..
  Reply With Quote