function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Amanda Bailey 20Amanda Bailey 20 

Web-to-Lead Issue

I'm utilizing my Web-to-Lead code that I generated and plugging it into PHP code so that I can use the form on a microsite. For some reason when I'm testing the site instead of displaying the form it displays a link asking me to redirect to login to Salesforce. Does anyone know of any reason that this would happen? 
joey_hoey19joey_hoey19
Hi Amanda, 

With web-to-lead and web-to-case for Salesforce you will not require to log in. Maybe check that your php code is submitting the form correctly in the action element of the form and that the OID is copied correctly from the web-to-lead setup that you created in SF.

Also, there is a retURL field which dictates what happes when you submit the form, potentially you may have specified retURL to go to the login screen of SF.

Thanks.
Regards,
Joey