C、HTML 和 CGI
我有一个用 C 编写的功能。我必须通过 html 页面提供输入,并在 C 中处理要处理的操作(在提交按钮时),并且必须将结果提供给同一个 html 页面。
请给出一些简单的例子来帮助我。
I have a functionality written in C. I have to give input through the html page and the operation to be processed in C (on submit of a button) and the result has to be given to the same html page.
Please help me out by given some simple examples.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一个教程。 (当然)您需要对要访问程序的网络服务器进行管理员访问。
Here is a tutorial. You will (of course) need admin access to the web server where you wish to access your program.
看来您需要用 C 语言编写一个 Ajax 程序。
CGI 编程的最简单示例:
C 位实际上很简单,Ajax 位则更复杂。
It looks like you need to make an Ajax program in C.
Simplest example of CGI programming in C:
The C bit is actually quite easy, the Ajax bit is more involved.