Home › Forums › Quform PHP › How remove all whitespace from captcha and ignore case?
- This topic has 4 replies, 2 voices, and was last updated 12 years ago by
Ally.
- AuthorPosts
- January 30, 2014 at 7:29 pm #8516
tcloud
ParticipantHow would I remove spaces and ignore case from a returned captcha string?
February 4, 2014 at 10:36 am #8576Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 4, 2014 at 10:58 am #8578Ally
Support StaffYou 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 12 years ago by
Ally.
February 4, 2014 at 11:22 am #8583tcloud
ParticipantBelow 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,
TomFebruary 4, 2014 at 11:51 am #8591Ally
Support StaffYou 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 12 years ago by
- AuthorPosts
- You must be logged in to reply to this topic.
