How to submit HTML form to exe app?
I'm just wondering how a website publishes information to an exe and how this exe grabs that information and outputs it using an html template file.
The code on the web page looks something like this:
<FORM ACTION="scripts/fetch.exe" METHOD=POST NAME=somename>
<INPUT TYPE=TEXT NAME="id" WIDTH=30>
<INPUT TYPE=SUBMIT NAME="nothing" VALUE="Submit">
</FORM>
How does the exe get this "id"?
Edit: to be more specific:
after this exe (which I have source if needed) is called it looks for a user in the directory based on that id and then prints out information about users based on the template file. I know what he does with the information, I just don't understand how she gets this information.
a source to share
This form uses CGI
In short, most CGI programs have a library that helps the programmer easily access form parameters. At this point, the program can process the data in several ways (database search, calculations, etc.) and generate content (html, javascript, etc.) to return the page. CGI was widespread before web servers were well integrated with application servers and interpreters like they are today.
Without the source (or disassembly) of this executable, you won't be able to know the details of what it does.
a source to share
Web servers typically pass such requests to external handlers through the Common Gateway Interface .
a source to share