Answered by:
PHP Form Values Submit to CRM???

Question
-
Hey everyone. I have been struggling with this a little bit. I am working for an agency, and when I came in there was this php form already implemented to submit values from the form, into microsoft crm. The thing I can't figure out is how exactly it is submitting the values into crm. I tried adding a new variable to input into crm, but it fails.
Here is my php code, this is the code that was implemented before me. So basically, I need to know how to add another variable so I can store in crm, for example "county" or "ip address"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Processing</title> <link rel="stylesheet" type="text/css" href="process.css"/> </head> <body onLoad="document.dl_leadForm.submit()"> <div id="hidden"> <form method="post" id="dl_leadForm" name="dl_leadForm" action="https://landingpage.leads.dynamicssite.com/PostLead.aspx?dl_lpai=9b854e6b-9573-434e-82ca-fd54ffae4e5b" enctype="application/x-www-form-urlencoded"> <input type="hidden" id="dl_361414971755596633" name="dl_361414971755596633" value="<?php echo($gender); ?>" /> <input type="hidden" id="dl_361414971755596631" name="dl_361414971755596631" value="<?php echo($birthday); ?>" /> <input type="hidden" id="dl_361414971755596627" name="dl_361414971755596627" value="<?php echo($email); ?>" /> <input type="hidden" id="dl_qs" name="dl_qs" /> </form></div> </body> </html>
Thursday, May 20, 2010 5:05 PM
Answers
-
Hi Gome,
Your php page is 'posting' the data to this page: PostLead.aspx
Your PostLead.aspx is getting the field iputs from your phppage and connecting to crm. The actual logic to connect to crm's web service is in this postlead.aspx page.
Alex Fagundes - www.PowerObjects.com- Proposed as answer by Alex Fagundes - PowerObjects Thursday, May 20, 2010 9:01 PM
- Marked as answer by Jim Glass Jr Monday, May 24, 2010 3:18 PM
Thursday, May 20, 2010 9:01 PM
All replies
-
Hi Gome,
Your php page is 'posting' the data to this page: PostLead.aspx
Your PostLead.aspx is getting the field iputs from your phppage and connecting to crm. The actual logic to connect to crm's web service is in this postlead.aspx page.
Alex Fagundes - www.PowerObjects.com- Proposed as answer by Alex Fagundes - PowerObjects Thursday, May 20, 2010 9:01 PM
- Marked as answer by Jim Glass Jr Monday, May 24, 2010 3:18 PM
Thursday, May 20, 2010 9:01 PM -
Alex--
This thread sounds like it might help me with a project at work, but I'm missing some information. I'm trying to use PHP to submit to Microsoft CRM and all I read about on Google is XML/SOAP that has to be formatted exactly correct or it will fail. It sounds like you may have a better solution. How do I create this PostLead.aspx page? I know a little C# so I could do it, but I need to know some more details. Thanks for your help in advance. (Pretend I know nothing about this topic and you will go a long way to helping me. My PHP skills are good, but the rest is a mystery to me).
Scott
Thursday, December 9, 2010 9:42 PM