Results 1 to 2 of 2

Thread: How to Create Captcha for Web to Lead Form?

  1. #1
    abarlam is offline Junior Member
    Join Date
    Jan 2009
    Posts
    1

    Default How to Create Captcha for Web to Lead Form?

    I was reading an earlier post here http://www.sugarcrm.com/forums/showthread.php?t=33341 which said there is a captcha option now in the lead form generation. I cannot find this for the life of me, and this is the only post referencing it! Can someone please point me in the right direction.

    Thanks.

  2. #2
    eikum is offline Member
    Join Date
    Jan 2009
    Posts
    11

    Default Re: How to Create Captcha for Web to Lead Form?

    Its norwegian text in this script

    PHP Code:
    <?php

        
    // add nusoap library
        
    require_once('lib/nusoap.php');

        
    // create a soap client
        
    $client = new nusoap_client('http://domainname.com/sugar/soap.php?wsdl','wsdl','','','','');

        
    // Login
        
    $user_auth = array(
                    
    'user_auth' => array(
                    
    'user_name' => 'admin',
                    
    'password' => ('MD5PASSWORD'),
                    
    'version' => '0.25'),
                    
    'application_name' => 'BBG'
            
    );

        
    $result $client->call('login',$user_auth);

        
    // output the session id
        
    echo '<h1>Vi har nå registrert deg i systemet, </br> Vi vil nå ringe deg om få minutter.</h1>';

        
    // Now Prepare a Contact
        
    $set_entry_params = array(
            
    'session' => $result['id'],
            
    'module_name' => 'Contacts',
            
    'name_value_list' => array(
                array(
    'name' => 'first_name''value' => $_POST['fornavn']),
                array(
    'name' => 'last_name''value' => $_POST['etternavn']),
                array(
    'name' => 'primary_address_street''value' => $_POST['adresse']),
                array(
    'name' => 'adrnumber_c''value' => $_POST['adrnr']),
                array(
    'name' => 'adrletter_c''value' => $_POST['adrboks']),
                array(
    'name' => 'primary_address_postalcode''value' => $_POST['postnummer']),
                array(
    'name' => 'primary_address_city''value' => $_POST['poststed']),
                array(
    'name' => 'phone_mobile''value' => $_POST['mobil']),
                array(
    'name' => 'phone_home''value' => $_POST['fasttelefon']),
                array(
    'name' => 'email1''value' => $_POST['epost']),
                array(
    'name' => 'fromwhere_c''value' => '1'),
                array(
    'name' => 'called_c''value' => '0')
            )
        );
            
        
    // Now Add the Contact
        
    $result2 $client->call('set_entry',$set_entry_params); 
    ?>

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How do I customize the create lead form?
    By jharris in forum Help
    Replies: 1
    Last Post: 2010-02-17, 10:09 AM
  2. How do I create a web 2 lead form with sugar
    By marktaggart in forum Help
    Replies: 1
    Last Post: 2008-07-21, 09:03 PM
  3. WebtoLead Form - create a Contact not Lead
    By southwestcrm in forum Help
    Replies: 1
    Last Post: 2008-05-30, 07:36 PM
  4. create lead from form filled on website
    By carlatpg in forum Feature Requests
    Replies: 1
    Last Post: 2006-10-06, 01:46 AM

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
  •