C、HTML 和 CGI

发布于 2024-08-13 11:33:12 字数 108 浏览 3 评论 0原文

我有一个用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

抱猫软卧 2024-08-20 11:33:12

这是一个教程。 (当然)您需要对要访问程序的网络服务器进行管理员访问。

Here is a tutorial. You will (of course) need admin access to the web server where you wish to access your program.

很酷又爱笑 2024-08-20 11:33:12

我必须通过html给出输入
页面和要处理的操作
在 C 中(提交按钮时)和
结果必须给予相同的
html 页面。

看来您需要用 C 语言编写一个 Ajax 程序。

CGI 编程的最简单示例:

int main ()
{
     printf ("Content-Type: text/plain\n\nHello world\n");
}

C 位实际上很简单,Ajax 位则更复杂。

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.

It looks like you need to make an Ajax program in C.

Simplest example of CGI programming in C:

int main ()
{
     printf ("Content-Type: text/plain\n\nHello world\n");
}

The C bit is actually quite easy, the Ajax bit is more involved.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文