How remove all whitespace from captcha and ignore case?

Home Forums Quform PHP How remove all whitespace from captcha and ignore case?

This topic is: not resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #8516
    tcloud
    Participant

    How would I remove spaces and ignore case from a returned captcha string?

    #8576
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #8578
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    • This reply was modified 10 years, 9 months ago by Ally.
    #8583
    tcloud
    Participant

    Below is the code for what I did — it seems to work. Please let me know if there are problems with my solution.

    This is at the top of process.php (actually process-file-uploads.php):


    if (isset($_POST['type_the_word'])) $_POST['type_the_word'] = strtoupper( str_replace(' ', '', $_POST['type_the_word']));

    The form is in action at:
    http://mykindred.com/cloud/TX/Documents/BeaElizabethDaltonHoax/
    under the Contact link and the phrase is “DALTON HOAX” — I wanted people to be able to type “daltonhoax” or “dalton hoax” and have it work and it seems to work okay with the above code.

    thanks,
    Tom

    #8591
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy