可以将数据发送到网页的简单 Java 表单吗?
我几乎不懂java,但我需要为手机制作一个简单的java应用程序来显示表单。提交后数据将被发送到网页。由于我是一名 php 程序员,我更愿意将其发送到 php 文件,然后该文件将使用表单的数据。我只需要几个输入文本区域,有人可以帮助我处理 java 部分吗? 提前致谢。 尼尔
I know virtually no java, but I need to make a simple java application for mobiles that would display a form.On being submitted The data would then be sent to a webpage. As I am a php programmer, I would prefer to have it sent to a php file, which would then use the form's data. I only need a couple of input text areas, would anybody be able to help me with the java part?
Thanks in advance.
Niall
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您没有提到什么平台,但无论您选择什么,您都需要研究HTTP Client< /a> 这是一个
就呈现形式而言,这非常依赖于平台。
You don't mention what platform but no matter what you choose you will need to look into HTTP Client and here is a good example of mimicking a form based submission.
As far as presenting a form, that's very platform dependent.
如果您可以通过 GET 调用 URL 来调用 PHP 文件,那么您应该能够使用以下代码来解决您的问题:
If you can call your PHP File by calling an URL via GET, than you should be able to solve your problem with the following piece of code: