开发者

What is the simplest way to send data to a script after a certain action is completed?

I am building a script that will handle data that is sent to it. This data will be in the form of id=xyz and key=j9ofi902f89djs8if with id and key particular to each script that is sending the data to my script. I am trying to think of a fool proof way that would make it exceedingly simple for anyone who wants to send this data to my script to do it.

My handling script will be built in PHP. The scripts sending the data to it will not be on the same domain. The data needs to be sent after a certain button is pressed the sending page and the form is verified that it has no errors. I would like to be able to control the process of sending and receiving all myself, but I cannot think of a way to do that. Is there a way to do this that would work across the board?

If not, what would be the best way to make it so that each different sending script that uses their own language, and method can easily send it to my script. Would a POST or a GET or something else be better. I want to make it so that they can send the data in the middle of their handling the form and on the script proceed to do other things after they 开发者_如何学Csend me the data. Any ideas?


Use AJAX, send the data through AJAX without a page refresh or a page redirect that is done with the post option. I think it is the best solution for your application.

Ajax tutorial.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜