+ Start a Discussion
madbarbermadbarber 

php interface

Hi,

I'm starting from scratch, and I'm supposed to create a web interface where customer can enter their enquiries and then it should automatically create a new case in salesforce. I thought about doing that by a HTML-Form which sends data to a php script which is going to insert the data into salesforce. Is it possible that way? Am I going right? What do I need to send SOAP requests by php? Do I need that 'Axis' plugin running on my webserver?
Thank you very much for answers!
ScotScot

Have you checked out the Web-to-Case functionality that's available without doing any external coding?

You simply build two pages for hosting on your Web site: one containing the form to collect the data, and the second confirming that the information was received. The form posts data to a URL on salesforce, which creates the case.

Better yet, salesforce.com will generate the HTML for the form (Setup/Self-Service/Web-to-Case) for you.  You'll most likely tune the results for look and feel, but all the critical moving parts are included automatically.

regglerreggler
Wow, that sounds awsome!
That's of course a much shorter way to go, eh?
I'm gonna check that out. Thank you very much!
regglerreggler
Hey that's really awsome! Seems to work very esily but after I've sent a new case, I'm not redirected to the page which I set, Why not?
Thank you!
ScotScot

I'm not sure I can help much with that ... I've never had a problem with it.

Can anyone else help?


FYI:
an example that works includes the code:
        [input type=hidden name="retURL" value=http://ebisweb.selectbs.com]
(where the square brackes are replaced with gt,lt)

 

regglerreggler


Scot wrote:
an example that works includes the code:
[input type=hidden name="retURL" value=http://ebisweb.selectbs.com]
(where the square brackes are replaced with gt,lt)






Well, I'm sending that too by:
[input type=hidden name="retURL" value="http://www.paykiosks.net/Thank_you.htm"]
but it seems like it wouldn't work... :(
I'm always redirected to this page:
http://www.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8
anyone know why? Thank you!
ScotScot
It appears that something is wrong with your Web-to-Case processing. What, I have no idea.
 
The URL you mentioned (http://www.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8) is involved, of course. The data from your page is posted to that URL. It processes the input data to generate the case, and then uses the value specified in the retURL to redirect the browser to the page specified.
regglerreggler


Scot wrote:
It appears that something is wrong with your Web-to-Case processing. What, I have no idea.





Hey Scot, thank you for your hints anyway!
Do you know where I can get some support on that issue? Thank you!
mmanganommangano


reggler wrote:


Scot wrote:
It appears that something is wrong with your Web-to-Case processing. What, I have no idea.





Hey Scot, thank you for your hints anyway!
Do you know where I can get some support on that issue? Thank you!




Do you want to post the URL of your case entry page? Perhaps we could look at the HTML?
ScotScot
Posting the link (as suggested below) makes sense.

If you have a customer account (or a trial account, for that matter), I'd also suggest that you contact salesforce support via phone or by logging a case under the Help & Training link.

(The Web-to-Case feature is part of the normal salesforce domain, rather than sforce's)
regglerreggler


mmangano wrote:


reggler wrote:


Scot wrote:
It appears that something is wrong with your Web-to-Case processing. What, I have no idea.





Hey Scot, thank you for your hints anyway!
Do you know where I can get some support on that issue? Thank you!




Do you want to post the URL of your case entry page? Perhaps we could look at the HTML?



Of course can I, it's on http://www.paykiosks.net/web-to-case.htm
ScotScot

Aha!

You're running in debug mode. 

Just past the beginning of the form, there are two lines:

   [input type="hidden" name="debug" value=1]
   [input type="hidden" name="debugEmail" value=support@paykiosks.net]

Remove these and your form should function correctly.

regglerreggler


Scot wrote:

Aha!


You're running in debug mode.


Just past the beginning of the form, there are two lines:


[input type="hidden" name="debug" value=1]
[input type="hidden" name="debugEmail" value=support@paykiosks.net]


Remove these and your form should function correctly.





yeSS, that's it, thank you very much! :) It now works successfully!