开发者

How to call a CGI function on HTML button click

I have an HTML form. I have a Submit button which calls a CGI script(function), defined and declared in a C file.

Similarly, I want to call a "开发者_开发知识库save function"(CGI script) on save button click. So, my question is how can I call a CGI script on button click on HTML form.

I am a newbie to HTML and CGI, but need to implement this.


You need to send the data of HTML form to your CGI file via GET or POST request. For example;

<form action="cgi-bin/save.cgi" method="post">

When you click to save button, it'll call the save.cgi

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜