1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

PHP Problems with Captcha

Discussion in 'Web Development' started by dzidorek, Aug 30, 2010.

  1. dzidorek

    dzidorek New Member

    Hello on one website ive found nice form with captcha on it so i copied it into my website (which for the moment is only on my computer) i edited all i should changed quotes etc i also download all the files needed .css, .js but i have problem with image for captcha.php how is is generated?

    my form looks like this:
    <h2>Get a Free Quote for Your Project</h2>
    Easily get a free Web design quote or submit your RFP, RFQ or RFI! Complete this form and your Website quote request will be immediately delivered to quality design firms and member companies in one easy step!<br /><br />
    <h2>Request a Quote</h2>
    All fields are required to help you get the best possible quote!

    <!-- START quote form-->
    <form action="quote_post.php" method="POST" onsubmit="return check_quote_form();">
    <input type="hidden" name="type" value="global" />

    <input type="hidden" name="tag" value="" />
    <input type="hidden" name="title" value="Global" />


    <div class="form_row">
    <div class="form_item">Company Name</div><div class="form_field"><input type="text" name="quote[company]" value="" /></div>
    </div>

    <div class="form_row">
    <div class="form_item">Your Name</div><div class="form_field"><input type="text" name="quote[fullname]" value="" /></div>
    </div>

    <div class="form_row">
    <div class="form_item">Phone Number</div><div class="form_field"><input type="text" name="quote[phone]" value="" /> <select name="quote[phonetype]"><option value="">This is my...</option>

    <option value="" disabled="true">---------------</option>
    <option value="work">Work Number</option>
    <option value="home">Home Number</option>
    <option value="mobile">Mobile Number</option>
    </select></div>
    </div>

    <div class="form_row">
    <div class="form_item">E-mail Address</div><div class="form_field"><input type="text" name="quote" value="" /></div>
    </div>

    <div class="form_row">
    <div class="form_item">Post Code</div><div class="form_field"><input class="form50" name="quote[zip]" id="i_zip" type="text" value="" /></div>
    </div>

    <div class="form_row">
    <div class="form_item">Your Primary Interest</div><div class="form_field"><select name="quote[interest]"><option value="">Please Select</option>
    <option value="" disabled="true">---------------</option>
    <option value="price">Comparing Prices</option>
    <option value="quote">Quick Quote</option>
    <option value="proposal">Detailed Proposal</option>

    <option value="contact">Contact for More Details</option>
    </select></div>
    </div>

    <div class="form_row">
    <div class="form_item">Project Description</div><div class="form_field"><textarea class="form325" rows="10" name="quote[message]"></textarea></div>
    </div>

    <div class="form_row">
    <div class="form_item">Security Code<br />
    <a href="pop_ captcha.php" onClick="NewWindow(this.href,'title','300','300','no');return false;">what's this?</a></div><div class="form_field"><img id="captcha" src="captcha.php"><br />
    <a href="" onclick="return reloadCaptcha();">Can't read it? Click to get new code.</a></div>

    </div>
    <div class="form_row">
    <div class="form_item">Enter Security Code</div><div class="form_field"><input class="form100" name="captcha" type="text"></div>
    </div>

    <div class="form_row">
    <div class="form_item"></div><div class="form_field"><input type="submit" name="submit" value="Submit Your Request Now!" /></div>
    </div>

    </form>
    <!-- END quote form-->


    i see all the questions on my page but i cant see image which is generating the code
     
  2. tomw

    tomw Member

    Can you post the URL of the website where you got the captcha script?
     
  3. dzidorek

    dzidorek New Member

    there you are:

    deleted link -that is not a proper address to the spot you got it from - your friendly mod Ishkey
     
  4. tomw

    tomw Member

    The captcha.php source code is needed to find out why you’re having problem generating the image. If the code is small you may post it here or give us a link where it can be downloaded.

    Also check to make sure captcha.php is at the same location of your form.
     
  5. tomw

    tomw Member

    The link you PM is just a site where the captcha.php script was used. It does not allow me to download it.

    Just to be cleared about your problem – do you have a copy of captcha.php?

    If not, you can get one from a list of websites that offer free Captcha Scripts here:

    Best PHP Scripts | PHP Captcha Scripts