开发者

How to call a CGI function on HTML button click

开发者 https://www.devze.com 2023-02-13 15:15 出处:网络
I have an HTML form. I have a Submit button which calls a CGI script(function), defined and declared in a C file.

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

精彩评论

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