1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

for submission plugin with capcha?

Discussion in 'Blogging' started by seoguruseo, Jan 7, 2017.

  1. seoguruseo

    seoguruseo Regular Member

    Joined:
    Aug 2, 2016
    Messages:
    236
    Likes Received:
    13
    Gender:
    Male
    I want user to submit form ,but need simple captcha to avoid duplicate submission
    plz help
     
  2. Ding Dong

    Ding Dong Jr. VIP Jr. VIP

    Joined:
    Feb 8, 2015
    Messages:
    1,448
    Likes Received:
    415
    Gender:
    Male
    Occupation:
    SEO expert
    Ha ha expecting more to get your ban


    [​IMG]
     
  3. mangoodi

    mangoodi Jr. VIP Jr. VIP

    Joined:
    Nov 30, 2016
    Messages:
    525
    Likes Received:
    132
    Gender:
    Male
    Occupation:
    Blogger
    Location:
    In front of my laptop
    Home Page:
    Dear mate,

    I think this what you are looking for

    The contact form with CAPTCHA

    <form method="POST" name="contact_form"
    action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>">

    <label for="name">Name: </label>
    <input type="text" name="name"
    value="<?php echo htmlentities($name) ?>">

    <label for="email">Email: </label>
    <input type="text" name="email"
    value="<?php echo htmlentities($visitor_email) ?>">

    <label for="message">Message:</label>
    <textarea name="message" rows=8 cols=30
    ><?php echo htmlentities($user_message) ?></textarea>

    <img src="captcha_code_file.php?rand=<?php echo rand(); ?>"
    id="captchaimg" >
    <label for="message">Enter the code above here :</label>
    <input id="6_letters_code" name="6_letters_code" type="text">

    <input type="submit" value="Submit" name="submit">
    </form>

    The HTML form above contains the fields for name, email and message. In addition, we have the CAPTCHA image. The <img> tag for the CAPTCHA image points to the script captcha_code_file.php. The PHP script in ‘captcha_code_file.php’ creates the image for the captcha and saves the code in a session variable named ‘6_letters_code’.