You need to sign in to do that
Don't have an account?
Candrax
Porblem with CURL and multiple select field in WebToLead form
Hi I have a wtl form on my site and I'm using CURL to send the POST data to salesforce.
Everything's fine except the problem I got with the multiple select fields in the form.
All I receive when form submitted is a simple 'Array' in the multi select field In SF leads. If I remove the '[]' from my select field I just receive the last option selected , anyway that should stay there cos I guess it's needed for the other php rutines with the form data.
Any ideas why is this happening, and how can be fixed?
Thanx
Huh. Really? Here's what I'm doing:
$params['00N50000001KzeM'] = 'MySite (US site);MySite (International site);MyOtherSite'; $ch = curl_init($sf_url); curl_setopt_array($ch, array( CURLOPT_FOLLOWLOCATION => false, CURLOPT_POST => 1, CURLOPT_POSTFIELDS => http_build_query($params) ) ); $result = trim(curl_exec($ch));
Hi Guys,
Please check billkat's post here:
http://community.salesforce.com/sforce/board/message?board.id=PerlDevelopment&message.id=4051
That's how I solved my curl problem :)
You have to loop through the array and send every option separately.
Cheers
HA! That did it! Thanks so much.
Joel