如何将表单数据从设备传递到托管的mssql数据库 [英] how to Pass form data from a device to a hosted mssql database

查看:74
本文介绍了如何将表单数据从设备传递到托管的mssql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这是一个常见问题:将表单数据从一个页面传递到另一个页面但我认为这有点不同。



我使用Visual Studio 2015和apache cordova创建了一个非常简单的Android条形码扫描应用程序,可以捕获条形码和时间日期戳,



调用javascript后只捕获两个文本字段:



I know this is a common question: "passing form data" from one page to another but this is a little different I think.

I used Visual Studio 2015 and apache cordova to create a very simple Android barcode scanning app that captures a barcode and a time date stamp,

Just two Text fields are captured after call to javascript:

cordova.plugins.barcodeScanner.scan(
           function (result) { //blah blah
                  //get barcode here
}










<!--example of my html page-->
<p>BarCode:   input id="output" type="text" size="40" /></p>
<p>TimeStamp: input id="stamp" type=text /></p>

<!--todo: send form data to hosted mssql database -->





现在我被卡住了。我不知道如何将数据发送到我托管的mssql数据库。我不是专业开发人员只是喜欢玩技术

所以感谢任何建议,希望我的问题是'清除'



谢谢



Now I'm stuck. I have no idea how to send that data to my hosted mssql database. I'm not a pro developer just enjoy playing with the technology
so appreciate any suggestions and hope my question is 'Clear'

thanks

推荐答案

您可以将php页面编写为上传功能,并使用httpclient将数据发送到此页面
You can write php page as upload function and using httpclient to send data to this page


这篇关于如何将表单数据从设备传递到托管的mssql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆