CodeIgniter Forums
Sending form data directly to a web service - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Sending form data directly to a web service (/showthread.php?tid=24922)



Sending form data directly to a web service - El Forum - 11-24-2009

[eluser]eokorie[/eluser]
Hi all,

Is it possible to send form data directly to a web service? I am currently designing a from that will allow a customer to enter his/her name, a reference number and telephone number as well as the ability to select whether they want to receive an immediate callback or a callback at a later time.

Thing I want to know is whether this information can be sent directly to a web service or does it have to be formatted in a certain way before that is possible? Current starting to dabble with web services so be gentle.

Thanks


Sending form data directly to a web service - El Forum - 11-24-2009

[eluser]Ben Edmunds[/eluser]
It depends on the web service...


Sending form data directly to a web service - El Forum - 11-24-2009

[eluser]eokorie[/eluser]
Hi Ben

I don't if you have heard of Noble's AMCAT system, but basically what's supposed to happen is that a customer's details are sent and these in turn are used to generate phone calls depends on when the customer wants to be contacted.


Sending form data directly to a web service - El Forum - 11-25-2009

[eluser]Ben Edmunds[/eluser]
Sorry but I've never heard of it.

What you want to do is just read their documentation and make sure you are sending over the correct data, in the correct format.

You'd probably be doing yourself a favor if you read up on PHP's curl.


Sending form data directly to a web service - El Forum - 11-25-2009

[eluser]jcavard[/eluser]
this might come in handy.
[url="http://github.com/philsturgeon/codeigniter-curl"]Phil Sturgeon's cURL Class[/url]