Results 1 to 9 of 9

Thread: WebToLead Form Submission + Captcha

  1. #1
    linuxhombre1 is offline Member
    Join Date
    Jan 2010
    Posts
    5

    Default WebToLead Form Submission + Captcha

    Hello,

    I am trying to implement captcha with the wonderful WebToLead functionality.

    So far, it's all integrated fine, but Captcha requires that it takes over the FORM ACTION area of my form. Is there any way around this? I have to pass the form data to the SugarCRM domainname.com/index.php&EntryPoint= using the FORM ACTION area.

    Any help on how to get captcha working or a similar tool to protect the form from spam is GREATLY appreciated.

    Thank you so much and please let me know if you have any questions / need more information.

    Joshua

  2. #2
    wdroush is offline Senior Member
    Join Date
    Oct 2009
    Posts
    159

    Default Re: WebToLead Form Submission + Captcha

    Build a page between, test the captcha, if it's good, forward the rest of the POST data to the CRM using curl and redirect the user somewhere else.

    Not familiar with CURL, but it should be easy, and a practical way without tampering with what Sugar is doing.


    Upgrade safe too.

  3. #3
    linuxhombre1 is offline Member
    Join Date
    Jan 2010
    Posts
    5

    Default Re: WebToLead Form Submission + Captcha

    I did read something about this, but I'm very unsure of the implementation logistics.

    Ideally, I would rather just be able to leave my form initiator the same...

    Code:
    <form action="http://myDomain.com/CRM/index.php?entryPoint=WebToLeadCapture" name="WebToLeadForm" method="POST" id="WebToLeadForm">
    ... so I l can pass the form data directly to the form without having to tamper with a manual pass via CURL or otherwise.


    Would someone mind posting an example of how to do this OR of how to reach the same goal using a different method? I am not absolutely set on using Captcha, I just need to make sure bots can't pick up and post to my forms.

    Thanks!

  4. #4
    linuxhombre1 is offline Member
    Join Date
    Jan 2010
    Posts
    5

    Question Re: WebToLead Form Submission + Captcha

    Can anyone link me to an example of:

    - PHP form that uses Captcha to verify a real user
    - Form data is grabbed from main page and passed to: FORM ACTION="myUrl.php" using CURL

    I've searched everywhere and I have not been able to find an example of this set up using CURL with Captcha.

    Thanks again for the help and don't hesitate to let me know if you have any questions.
    LinuxHombre

  5. #5
    wdroush is offline Senior Member
    Join Date
    Oct 2009
    Posts
    159

    Default Re: WebToLead Form Submission + Captcha

    CURL:
    http://www.askapache.com/htaccess/se...-php-curl.html

    For the captchas they vary depending upon implementation, when the captcha is created it should store the actual letters somewhere in a database or file, and link it to the session ID, you just pull it up via session ID and compare.

  6. #6
    linuxhombre1 is offline Member
    Join Date
    Jan 2010
    Posts
    5

    Question Re: WebToLead Form Submission + Captcha

    OK so I definitely know how to handle the integration of any Captcha.

    What I do ask for is a small example of what I'd do in CURL in the switch after Captcha is verified (ie; the below pseudocode which would be included in a 'verify.php' sort of file, which will handle what to do if a Captcha is verified or if it is not verified):

    if Captcha NOT verified-
    return text stating to renter captcha code
    END

    if Captcha IS verified-
    INSERT CURL EXAMPLE HERE
    - How are the form data items referenced/manipulated here
    - How does CURL pass the form data to the Web-To-Lead URL: http://www.myDomain.com/CRM/index.ph...bToLeadCapture


    Thanks again.

  7. #7
    linuxhombre1 is offline Member
    Join Date
    Jan 2010
    Posts
    5

    Talking Re: WebToLead Form Submission + Captcha

    Yeeeah! I got it.

    Let me know if you guys/gals want me to post the end-solution and I will.

  8. #8
    lionmedia is offline Junior Member
    Join Date
    Nov 2009
    Posts
    4

    Default Re: WebToLead Form Submission + Captcha

    Would be great to see the end solution linuxhombre1! I've been searching for the same thing.

  9. #9
    hdanielb's Avatar
    hdanielb is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Argentina
    Posts
    40

    Default Re: WebToLead Form Submission + Captcha

    I will try to do something with RECAPTCHA, about this....post with code in next days...(hope my wife and kids don't bother tonight)
    Daniel Blanco
    Director
    Blanco Martin & Asociados
    Worldwide Hosted Software Solutions

    Visit us at www.blancomartin.com.ar

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to put Captcha in Web to Form
    By seanpeace in forum Help
    Replies: 5
    Last Post: 2010-03-08, 10:18 AM
  2. WebtoLead Form fields
    By sgilleland in forum Help
    Replies: 0
    Last Post: 2009-09-12, 04:32 AM
  3. Quick question on form submission
    By sabres21 in forum Help
    Replies: 6
    Last Post: 2009-05-14, 01:52 AM
  4. Replies: 1
    Last Post: 2009-02-17, 11:42 AM
  5. Replies: 5
    Last Post: 2008-07-17, 07:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •