• Bruno Bonfim Affonso
  • 90 Points
  • Member since 2016

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 4
I'm getting symptoms similiar to https://developer.salesforce.com/forums/?id=906F0000000D9pIIAS exception I'm using cURL with PHP, and I have explicitly set TLSv1.2.

I keep getting "ignore-captcha: Ignoring captcha since redirect timed out." and no leads posting. 
Here is the Question

Create an Apex class that implements the Schedulable interface to update Lead records with a specific LeadSource. Write unit tests that achieve 100% code coverage for the class. This is very similar to what you did for Batch Apex.
Create an Apex class called 'DailyLeadProcessor' that uses the Schedulable interface.
The execute method must find the first 200 Leads with a blank LeadSource field and update them with the LeadSource value of 'Dreamforce'.
Create an Apex test class called 'DailyLeadProcessorTest'.
In the test class, insert 200 Lead records, schedule the DailyLeadProcessor class to run and test that all Lead records were updated correctly.
The unit tests must cover all lines of code included in the DailyLeadProcessor class, resulting in 100% code coverage.
Run your test class at least once (via 'Run All' tests the Developer Console) before attempting to verify this challenge.

Here is my code so far

global class DailyLeadProcessor implements Schedulable {

    global void execute(SchedulableContext ctx) {
        list<leads>Lead = [select leadSource from lead where isnull= true]
         for (Integer i = 0; i < 200; i++) {
            Leads.add(new lead(
                name='Dream force'+i
        insert Leads;

I am not sure what is wrong here

Greetings, I need your help,


I have two forms set up on a website. They are both the same form the difference being that one is in PHP and does not have Web To Lead implemented into it (I wish it did). The other is a working form that I made with Web To Lead without PHP. I will explain my goals as you read on.



I am not a PHP coder so I'm clueless in this area. I have a PHP form on a website that works beautifly. It has terriffic spam protection, I can easily tell it which fields need to be required and was real easy to set up:




The PHP it uses is called Form To Email Pro http://formtoemail.com/ You can DL a free version on their website (left side of page), pro version is not much different.


I really like this form because it was so easy for code challenged people like myself to setup. It would be great if I could some how implement the fields necessary to get Web To Lead to work. Can someone help me with this or is it impossible?



I also made a non php version using Web To Lead that IS working but I need to tell the form which areas are Required. Apparently, I can set these fields in my SalesForce account but it also has to be done at the form as well. How is this done. Here is a link to the SalesForce enhanced version:




Thank you for looking at this, I hope someone can help me out. Bottom line, I am trying to have a form that will guard against spam as well as the PHP version does and can be set up with Required fields.

How can I have a Web to Lead generated from  a PHP Script (an existing script we use).
I mean without haveing a form, just directly from the PHP script.
  • August 20, 2008
  • Like
  • 0