I have been toying with a simple form today, which I need to submit to a custom URL so entries can be dynamically added into our online database (Salesforce.com web-to-lead if anyone knows). The form seems to work fine when emailing, but that's no good to me. I have now set the form up to submit to an online POST checker (which I have checked with an old form from my old website, so I know it works), but I have yet to actually get the form the post any data to it.
I have tried tweaking a couple of things but nothing seems to be working. Could this be a problem with the latest version of wordpress? I'm quite new to this wordpress game, so any help is greatly appreciated.
I really hope I can get this to work because wordpress forms that I can edit the action field of is exactly what I need.
This is a great plugin BTW, I'm actually shocked at how good it is, just need to fix this tiny problem!
I have now set the form up to submit to an online POST checker (which I have checked with an old form from my old website, so I know it works), but I have yet to actually get the form the post any data to it.
how did you configure cforms
I have tried tweaking a couple of things but nothing seems to be working. Could this be a problem with the latest version of wordpress?
I set the alternative action to http://www.hashemian.com/tools…..tester.php (this seems to work for any other form, and prints a text of the $_POST array, however when I use it with cforms it just shows nothing posted, as you will see if you try posting my form using the link above.)
I have not changed too many options but I wil try and summarise my setup below:
My installation of wordpress is set to use a subdirectory -/wordpress, but I checked sajax_uri and it seems ok.
Input fields DO NOT reset after submission.
Custom field names and IDs are enabled.
AJAX is enabled (still doesn't work if turned off though).
Admin Email settings have been left as defaults.
Auto-confirmation OFF.
NOT part of a multi-page form.
Any other questions please ask me and I will respond as quickly as I can (I was on holiday for the past 5 days but am back now)
I have just had some success in posting the data, both to the post tester mentioned above, and directly into my online DB. I did this by removing enctype='multipart/form-data' from the form tag. It also works when changing the value to application/x-www-form-urlencoded.
I understand that multipart/form-data is only needed if the form needs to have a file upload field, so is there anyway I can change this value in cforms?
Thanks for your reply again. Do you have an idea what php or server settings it might be?
I checked register_globals which is ON, the only other one I found any info on relating to similar enctype problems was with always_populate_raw_post_data – this is off on my server but I can't turn it on i just get a 500 error.
I have queried all of this with my host (dataflame) and they are looking into it.
I have the same problem but with posting to an ASP script on a remote server. Apparently ASP reads POST variables differently then multipart/form-data variables and so no variables submitted from cforms make it to the ASP script. Can someone tell me where the best place to change the form type is?
I am experiencing the same issue with the enctype being set to multipart/form-data. My form has a custom action and is posting data to salesforce. For some reason they are not accepting data encoded this way. If I copy the form and remove the enctype the form goes through.
Sounds like there is more than "1 in 700,000 downloads" with this issue. :) I also must submit form data using "enctype=application/x-www-form-urlencoded". Sorry to say without this capability anyone who uses cforms to submit data to lead management software is out of luck. Is it something that can be changed in the code fairly easily?
I ran into this same problem today. Created a form that had to submit to Salesforce and they apparently will not accept the form if it has that enctype="multipart/form-data" in it. Until a "switch" is added to cforms that will turn this on/off, I've completely removed this line from the plugin (of course this means we can't do any file uploads, but we don't need that feature so I'll accept that) – but here's how to remove it if you need to: in cforms.php line 354 – change this:
Maybe the new feature could simply be simplified Salesforce.com web-to-lead support? I have a feeling that a lot of users would be interested in this functionality, and it's probably something that you could integrate very easily.
That's fantastic news. For whatever reason I cannot seem to get this working on my own, although I feel like it should be relatively simple. Wish it were April already! By all means let me know if you need any QA testing.
Thanks for your reply again. Do you have an idea what php or server settings it might be?
I checked register_globals which is ON, the only other one I found any info on relating to similar enctype problems was with always_populate_raw_post_data – this is off on my server but I can't turn it on i just get a 500 error.
I have queried all of this with my host (dataflame) and they are looking into it.
Hi Drew – I'm hoping you still follow this forum because I'm very interested to know if you were able to successful implement cforms for salesforce. i have a similar project for which the wordpress-to-salesforce basic plugin in insufficient….if you're willing to share, i'd be much obliged!